Skip to content

Commit

Permalink
fix pg13 test and re-enable. needed small sleep for stats to update.
Browse files Browse the repository at this point in the history
  • Loading branch information
ardentperf committed Sep 17, 2023
1 parent 121f909 commit 150e274
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
pg: [16, 15, 14]
pg: [16, 15, 14, 13]
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
12 changes: 12 additions & 0 deletions test/expected/basic.out
Original file line number Diff line number Diff line change
@@ -14,6 +14,12 @@ NOTICE: INFO: query execution complete; now resetting client_min_messages
__________ DSEF for PostgreSQL (DiffStats & ExplainFull) Version
(1 row)

select pg_sleep(0.5);
pg_sleep
----------

(1 row)

set client_min_messages=warning;
select distinct scope from ds_report() where scope in ('Database','Instance');
scope
@@ -49,6 +55,12 @@ NOTICE: INFO: query execution complete; now resetting client_min_messages
__________ DSEF for PostgreSQL (DiffStats & ExplainFull) Version
(1 row)

select pg_sleep(0.5);
pg_sleep
----------

(1 row)

set client_min_messages=warning;
select distinct scope from ds_report_diff() where scope in ('Database','Instance');
scope
2 changes: 2 additions & 0 deletions test/sql/basic.sql
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ select ds_start();

select regexp_replace("QUERY PLAN",'Version:.*','Version') from explain_analyze_full($$ select max(a) from dsef1 $$) limit 1;;

select pg_sleep(0.5);
set client_min_messages=warning;
select distinct scope from ds_report() where scope in ('Database','Instance');

@@ -21,5 +22,6 @@ select ds_capture();

select regexp_replace("QUERY PLAN",'Version:.*','Version') from explain_analyze_full($$ select min(a) from dsef1 $$) limit 1;;

select pg_sleep(0.5);
set client_min_messages=warning;
select distinct scope from ds_report_diff() where scope in ('Database','Instance');

0 comments on commit 150e274

Please sign in to comment.