aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-09-06 16:14:49 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-09-06 16:14:57 -0400
commitbd5846e4a9c1338ded5efcef53511f0d71f53f0e (patch)
tree9266d30d197a6b5bb521485a547f0182b2b9e014 /src
parent8670b9b999adb66e2e063225496962763c4c28de (diff)
downloadpostgresql-bd5846e4a9c1338ded5efcef53511f0d71f53f0e.tar.gz
postgresql-bd5846e4a9c1338ded5efcef53511f0d71f53f0e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/t/020_cancel.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/t/020_cancel.pl b/src/bin/psql/t/020_cancel.pl
index b3edaaf35d0..0ca8e1743db 100644
--- a/src/bin/psql/t/020_cancel.pl
+++ b/src/bin/psql/t/020_cancel.pl
@@ -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