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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy