Content-Length: 288518 | pFad | http://github.com/postgrespro/postgres_cluster/commit/19fcc0058ecc8e5eb756547006bc1b24a93cbb80

0F Fix broken wait-for-previous-process-to-exit loop in regression test. · postgrespro/postgres_cluster@19fcc00 · GitHub
Skip to content

Commit 19fcc00

Browse files
committed
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 b3427da -- evidently my workstation never really iterated the loop in testing. Per buildfarm.
1 parent 767a903 commit 19fcc00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/modules/test_extensions/expected/test_extensions.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ do 'declare c int = 0;
106106
begin
107107
while (select count(*) from pg_stat_activity where pid = '
108108
:'oldpid'
109-
') > 0 loop c := c + 1; end loop;
109+
') > 0 loop c := c + 1; perform pg_stat_clear_snapshot(); end loop;
110110
raise log ''test_extensions looped % times'', c;
111111
end';
112112
-- extension should now contain no temp objects

src/test/modules/test_extensions/sql/test_extensions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ do 'declare c int = 0;
5555
begin
5656
while (select count(*) from pg_stat_activity where pid = '
5757
:'oldpid'
58-
') > 0 loop c := c + 1; end loop;
58+
') > 0 loop c := c + 1; perform pg_stat_clear_snapshot(); end loop;
5959
raise log ''test_extensions looped % times'', c;
6060
end';
6161

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/19fcc0058ecc8e5eb756547006bc1b24a93cbb80

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy