mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 14:41:22 +02:00
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
This commit is contained in:
parent
8670b9b999
commit
bd5846e4a9
@ -53,7 +53,7 @@ SKIP: {
|
||||
# Send sleep command and wait until the server has registered it
|
||||
$stdin = "select pg_sleep(180);\n";
|
||||
pump $h while length $stdin;
|
||||
$node->poll_query_until('postgres', q{SELECT (SELECT count(*) FROM pg_stat_activity WHERE query ~ 'pg_sleep') > 0;})
|
||||
$node->poll_query_until('postgres', q{SELECT (SELECT count(*) FROM pg_stat_activity WHERE query ~ '^select pg_sleep') > 0;})
|
||||
or die "timed out";
|
||||
|
||||
# Send cancel request
|
||||
|
Loading…
Reference in New Issue
Block a user