Content-Length: 257552 | pFad | http://github.com/postgrespro/postgres/commit/bd5846e4a9c1338ded5efcef53511f0d71f53f0e

FD Further fix psql query-cancel test. · postgrespro/postgres@bd5846e · GitHub
Skip to content

Commit bd5846e

Browse files
committed
Further fix psql query-cancel test.
The query to wait for pg_sleep to be running did no such thing, because the regex pattern it used could match itself. Report: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=conchuela&dt=2021-09-06%2018%3A00%3A20
1 parent 8670b9b commit bd5846e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/t/020_cancel.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
# Send sleep command and wait until the server has registered it
5454
$stdin = "select pg_sleep(180);\n";
5555
pump $h while length $stdin;
56-
$node->poll_query_until('postgres', q{SELECT (SELECT count(*) FROM pg_stat_activity WHERE query ~ 'pg_sleep') > 0;})
56+
$node->poll_query_until('postgres', q{SELECT (SELECT count(*) FROM pg_stat_activity WHERE query ~ '^select pg_sleep') > 0;})
5757
or die "timed out";
5858

5959
# Send cancel request

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/commit/bd5846e4a9c1338ded5efcef53511f0d71f53f0e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy