Skip to content

Commit

Permalink
Issue #36: fix script output varying due to timing.
Browse files Browse the repository at this point in the history
Also fix alternative output.

tags: pg_query_state
  • Loading branch information
Maxim Orlov committed Nov 8, 2021
1 parent 8ecd905 commit 4b53e03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions expected/corner_cases_2.out
Expand Up @@ -13,8 +13,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -24,8 +25,9 @@ save_own_pid


step s1_disable_pg_qs: set pg_query_state.enable to off;
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: query execution statistics disabled
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -36,8 +38,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -48,8 +51,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -60,5 +64,6 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
step s2_pg_qs_counterpart: <... completed>
ERROR: permission denied
15 changes: 10 additions & 5 deletions expected/corner_cases_3.out
Expand Up @@ -13,8 +13,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -24,8 +25,9 @@ save_own_pid


step s1_disable_pg_qs: set pg_query_state.enable to off;
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: query execution statistics disabled
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -36,8 +38,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -48,8 +51,9 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
s2: INFO: state of backend is idle
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: <... completed>
pg_query_state


Expand All @@ -60,7 +64,8 @@ step s1_save_pid: select save_own_pid(0);
save_own_pid


step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0));
step s2_pg_qs_counterpart: select pg_query_state(counterpart_pid(0)); <waiting ...>
step s2_pg_qs_counterpart: <... completed>
ERROR: permission denied
unused step name: s1_enable_pg_qs
unused step name: s1_pg_qs_counterpart
Expand Down

0 comments on commit 4b53e03

Please sign in to comment.