Commit 19fcc005 authored by Tom Lane's avatar Tom Lane

Fix broken wait-for-previous-process-to-exit loop in regression test.

Must do pg_stat_clear_snapshot() inside test's loop, or our snapshot of
pg_stat_activity will never change :-(.  Thinko in b3427dad -- evidently
my workstation never really iterated the loop in testing.  Per buildfarm.
parent 767a9039
...@@ -106,7 +106,7 @@ do 'declare c int = 0; ...@@ -106,7 +106,7 @@ do 'declare c int = 0;
begin begin
while (select count(*) from pg_stat_activity where pid = ' while (select count(*) from pg_stat_activity where pid = '
:'oldpid' :'oldpid'
') > 0 loop c := c + 1; end loop; ') > 0 loop c := c + 1; perform pg_stat_clear_snapshot(); end loop;
raise log ''test_extensions looped % times'', c; raise log ''test_extensions looped % times'', c;
end'; end';
-- extension should now contain no temp objects -- extension should now contain no temp objects
......
...@@ -55,7 +55,7 @@ do 'declare c int = 0; ...@@ -55,7 +55,7 @@ do 'declare c int = 0;
begin begin
while (select count(*) from pg_stat_activity where pid = ' while (select count(*) from pg_stat_activity where pid = '
:'oldpid' :'oldpid'
') > 0 loop c := c + 1; end loop; ') > 0 loop c := c + 1; perform pg_stat_clear_snapshot(); end loop;
raise log ''test_extensions looped % times'', c; raise log ''test_extensions looped % times'', c;
end'; end';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment