Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd5846e

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 parent8670b9b commitbd5846e

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$hwhilelength$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 ~ '^selectpg_sleep') > 0;})
5757
ordie"timed out";
5858

5959
# Send cancel request

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp