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

Commitadaaaca

Browse files
committed
Make vacuumdb test regex more modular for its query output
This is in preparation for always using a catalog query to discovertables, where the ANALYZE and VACUUM queries get completed with relationnames.Author: Nathan BossartDiscussion:https://postgr.es/m/20190122060730.GD8719@paquier.xyz
1 parent4a8283d commitadaaaca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/bin/scripts/t/100_vacuumdb.pl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,35 @@
1515

1616
$node->issues_sql_like(
1717
['vacuumdb','postgres' ],
18-
qr/statement: VACUUM;/,
18+
qr/statement: VACUUM.*;/,
1919
'SQL VACUUM run');
2020
$node->issues_sql_like(
2121
['vacuumdb','-f','postgres' ],
22-
qr/statement: VACUUM\(FULL\);/,
22+
qr/statement: VACUUM\(FULL\).*;/,
2323
'vacuumdb -f');
2424
$node->issues_sql_like(
2525
['vacuumdb','-F','postgres' ],
26-
qr/statement: VACUUM\(FREEZE\);/,
26+
qr/statement: VACUUM\(FREEZE\).*;/,
2727
'vacuumdb -F');
2828
$node->issues_sql_like(
2929
['vacuumdb','-zj2','postgres' ],
30-
qr/statement: VACUUM\(ANALYZE\) pg_catalog\./,
30+
qr/statement: VACUUM\(ANALYZE\).*;/,
3131
'vacuumdb -zj2');
3232
$node->issues_sql_like(
3333
['vacuumdb','-Z','postgres' ],
34-
qr/statement: ANALYZE;/,
34+
qr/statement: ANALYZE.*;/,
3535
'vacuumdb -Z');
3636
$node->issues_sql_like(
3737
['vacuumdb','--disable-page-skipping','postgres' ],
38-
qr/statement: VACUUM\(DISABLE_PAGE_SKIPPING\);/,
38+
qr/statement: VACUUM\(DISABLE_PAGE_SKIPPING\).*;/,
3939
'vacuumdb --disable-page-skipping');
4040
$node->issues_sql_like(
4141
['vacuumdb','--skip-locked','postgres' ],
42-
qr/statement: VACUUM\(SKIP_LOCKED\);/,
42+
qr/statement: VACUUM\(SKIP_LOCKED\).*;/,
4343
'vacuumdb --skip-locked');
4444
$node->issues_sql_like(
4545
['vacuumdb','--skip-locked','--analyze-only','postgres' ],
46-
qr/statement: ANALYZE\(SKIP_LOCKED\);/,
46+
qr/statement: ANALYZE\(SKIP_LOCKED\).*;/,
4747
'vacuumdb --skip-locked --analyze-only');
4848
$node->command_fails(
4949
['vacuumdb','--analyze-only','--disable-page-skipping','postgres' ],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp