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 b3427dade -- evidently my workstation never really iterated the loop in testing. Per buildfarm.
This commit is contained in:
parent
767a9039d7
commit
19fcc0058e
@ -106,7 +106,7 @@ do 'declare c int = 0;
|
||||
begin
|
||||
while (select count(*) from pg_stat_activity where pid = '
|
||||
:'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;
|
||||
end';
|
||||
-- extension should now contain no temp objects
|
||||
|
@ -55,7 +55,7 @@ do 'declare c int = 0;
|
||||
begin
|
||||
while (select count(*) from pg_stat_activity where pid = '
|
||||
:'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;
|
||||
end';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user