|
22 | 22 | 'SQL VACUUM run');
|
23 | 23 | $node->issues_sql_like(
|
24 | 24 | ['vacuumdb','-f','postgres' ],
|
25 |
| -qr/statement: VACUUM\(FULL\).*;/, |
| 25 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,FULL\).*;/, |
26 | 26 | 'vacuumdb -f');
|
27 | 27 | $node->issues_sql_like(
|
28 | 28 | ['vacuumdb','-F','postgres' ],
|
29 |
| -qr/statement: VACUUM\(FREEZE\).*;/, |
| 29 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,FREEZE\).*;/, |
30 | 30 | 'vacuumdb -F');
|
31 | 31 | $node->issues_sql_like(
|
32 | 32 | ['vacuumdb','-zj2','postgres' ],
|
33 |
| -qr/statement: VACUUM\(ANALYZE\).*;/, |
| 33 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,ANALYZE\).*;/, |
34 | 34 | 'vacuumdb -zj2');
|
35 | 35 | $node->issues_sql_like(
|
36 | 36 | ['vacuumdb','-Z','postgres' ],
|
37 | 37 | qr/statement: ANALYZE.*;/,
|
38 | 38 | 'vacuumdb -Z');
|
39 | 39 | $node->issues_sql_like(
|
40 | 40 | ['vacuumdb','--disable-page-skipping','postgres' ],
|
41 |
| -qr/statement: VACUUM\(DISABLE_PAGE_SKIPPING\).*;/, |
| 41 | +qr/statement: VACUUM\(DISABLE_PAGE_SKIPPING, SKIP_DATABASE_STATS\).*;/, |
42 | 42 | 'vacuumdb --disable-page-skipping');
|
43 | 43 | $node->issues_sql_like(
|
44 | 44 | ['vacuumdb','--skip-locked','postgres' ],
|
45 |
| -qr/statement: VACUUM\(SKIP_LOCKED\).*;/, |
| 45 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,SKIP_LOCKED\).*;/, |
46 | 46 | 'vacuumdb --skip-locked');
|
47 | 47 | $node->issues_sql_like(
|
48 | 48 | ['vacuumdb','--skip-locked','--analyze-only','postgres' ],
|
|
53 | 53 | '--analyze-only and --disable-page-skipping specified together');
|
54 | 54 | $node->issues_sql_like(
|
55 | 55 | ['vacuumdb','--no-index-cleanup','postgres' ],
|
56 |
| -qr/statement: VACUUM\(INDEX_CLEANUP FALSE\).*;/, |
| 56 | +qr/statement: VACUUM\(INDEX_CLEANUP FALSE, SKIP_DATABASE_STATS\).*;/, |
57 | 57 | 'vacuumdb --no-index-cleanup');
|
58 | 58 | $node->command_fails(
|
59 | 59 | ['vacuumdb','--analyze-only','--no-index-cleanup','postgres' ],
|
60 | 60 | '--analyze-only and --no-index-cleanup specified together');
|
61 | 61 | $node->issues_sql_like(
|
62 | 62 | ['vacuumdb','--no-truncate','postgres' ],
|
63 |
| -qr/statement: VACUUM\(TRUNCATE FALSE\).*;/, |
| 63 | +qr/statement: VACUUM\(TRUNCATE FALSE, SKIP_DATABASE_STATS\).*;/, |
64 | 64 | 'vacuumdb --no-truncate');
|
65 | 65 | $node->command_fails(
|
66 | 66 | ['vacuumdb','--analyze-only','--no-truncate','postgres' ],
|
67 | 67 | '--analyze-only and --no-truncate specified together');
|
68 | 68 | $node->issues_sql_like(
|
69 | 69 | ['vacuumdb','--no-process-toast','postgres' ],
|
70 |
| -qr/statement: VACUUM\(PROCESS_TOAST FALSE\).*;/, |
| 70 | +qr/statement: VACUUM\(PROCESS_TOAST FALSE, SKIP_DATABASE_STATS\).*;/, |
71 | 71 | 'vacuumdb --no-process-toast');
|
72 | 72 | $node->command_fails(
|
73 | 73 | ['vacuumdb','--analyze-only','--no-process-toast','postgres' ],
|
74 | 74 | '--analyze-only and --no-process-toast specified together');
|
75 | 75 | $node->issues_sql_like(
|
76 | 76 | ['vacuumdb','-P', 2,'postgres' ],
|
77 |
| -qr/statement: VACUUM\(PARALLEL 2\).*;/, |
| 77 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,PARALLEL 2\).*;/, |
78 | 78 | 'vacuumdb -P 2');
|
79 | 79 | $node->issues_sql_like(
|
80 | 80 | ['vacuumdb','-P', 0,'postgres' ],
|
81 |
| -qr/statement: VACUUM\(PARALLEL 0\).*;/, |
| 81 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,PARALLEL 0\).*;/, |
82 | 82 | 'vacuumdb -P 0');
|
83 | 83 | $node->command_ok([qw(vacuumdb -Z --table=pg_am dbname=template1)],
|
84 | 84 | 'vacuumdb with connection string');
|
|
119 | 119 | 'negative parallel degree');
|
120 | 120 | $node->issues_sql_like(
|
121 | 121 | ['vacuumdb','--analyze','--table','vactable(a, b)','postgres' ],
|
122 |
| -qr/statement: VACUUM\(ANALYZE\) public.vactable\(a, b\);/, |
| 122 | +qr/statement: VACUUM\(SKIP_DATABASE_STATS,ANALYZE\) public.vactable\(a, b\);/, |
123 | 123 | 'vacuumdb --analyze with complete column list');
|
124 | 124 | $node->issues_sql_like(
|
125 | 125 | ['vacuumdb','--analyze-only','--table','vactable(b)','postgres' ],
|
|
150 | 150 | 'vacuumdb --table --min-xid-age');
|
151 | 151 | $node->issues_sql_like(
|
152 | 152 | ['vacuumdb','--schema','"Foo"','postgres' ],
|
153 |
| -qr/VACUUM "Foo".bar/, |
| 153 | +qr/VACUUM\(SKIP_DATABASE_STATS\)"Foo".bar/, |
154 | 154 | 'vacuumdb --schema');
|
155 | 155 | $node->issues_sql_like(
|
156 | 156 | ['vacuumdb','--exclude-schema','"Foo"','postgres' ],
|
|