@ -22,15 +22,15 @@ $node->issues_sql_like(
'SQL VACUUM run' ) ;
'SQL VACUUM run' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-f' , 'postgres' ] ,
[ 'vacuumdb' , '-f' , 'postgres' ] ,
qr/statement: VACUUM \(FULL\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, FULL\).*;/ ,
'vacuumdb -f' ) ;
'vacuumdb -f' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-F' , 'postgres' ] ,
[ 'vacuumdb' , '-F' , 'postgres' ] ,
qr/statement: VACUUM \(FREEZE\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, FREEZE\).*;/ ,
'vacuumdb -F' ) ;
'vacuumdb -F' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-zj2' , 'postgres' ] ,
[ 'vacuumdb' , '-zj2' , 'postgres' ] ,
qr/statement: VACUUM \(ANALYZE\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, ANALYZE\).*;/ ,
'vacuumdb -zj2' ) ;
'vacuumdb -zj2' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-Z' , 'postgres' ] ,
[ 'vacuumdb' , '-Z' , 'postgres' ] ,
@ -38,11 +38,11 @@ $node->issues_sql_like(
'vacuumdb -Z' ) ;
'vacuumdb -Z' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--disable-page-skipping' , 'postgres' ] ,
[ 'vacuumdb' , '--disable-page-skipping' , 'postgres' ] ,
qr/statement: VACUUM \(DISABLE_PAGE_SKIPPING\).*;/ ,
qr/statement: VACUUM \(DISABLE_PAGE_SKIPPING, SKIP_DATABASE_STATS \).*;/ ,
'vacuumdb --disable-page-skipping' ) ;
'vacuumdb --disable-page-skipping' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--skip-locked' , 'postgres' ] ,
[ 'vacuumdb' , '--skip-locked' , 'postgres' ] ,
qr/statement: VACUUM \(SKIP_LOCKED\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, SKIP_ LOCKED\).*;/ ,
'vacuumdb --skip-locked' ) ;
'vacuumdb --skip-locked' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--skip-locked' , '--analyze-only' , 'postgres' ] ,
[ 'vacuumdb' , '--skip-locked' , '--analyze-only' , 'postgres' ] ,
@ -53,32 +53,32 @@ $node->command_fails(
'--analyze-only and --disable-page-skipping specified together' ) ;
'--analyze-only and --disable-page-skipping specified together' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--no-index-cleanup' , 'postgres' ] ,
[ 'vacuumdb' , '--no-index-cleanup' , 'postgres' ] ,
qr/statement: VACUUM \(INDEX_CLEANUP FALSE\).*;/ ,
qr/statement: VACUUM \(INDEX_CLEANUP FALSE, SKIP_DATABASE_STATS \).*;/ ,
'vacuumdb --no-index-cleanup' ) ;
'vacuumdb --no-index-cleanup' ) ;
$ node - > command_fails (
$ node - > command_fails (
[ 'vacuumdb' , '--analyze-only' , '--no-index-cleanup' , 'postgres' ] ,
[ 'vacuumdb' , '--analyze-only' , '--no-index-cleanup' , 'postgres' ] ,
'--analyze-only and --no-index-cleanup specified together' ) ;
'--analyze-only and --no-index-cleanup specified together' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--no-truncate' , 'postgres' ] ,
[ 'vacuumdb' , '--no-truncate' , 'postgres' ] ,
qr/statement: VACUUM \(TRUNCATE FALSE\).*;/ ,
qr/statement: VACUUM \(TRUNCATE FALSE, SKIP_DATABASE_STATS \).*;/ ,
'vacuumdb --no-truncate' ) ;
'vacuumdb --no-truncate' ) ;
$ node - > command_fails (
$ node - > command_fails (
[ 'vacuumdb' , '--analyze-only' , '--no-truncate' , 'postgres' ] ,
[ 'vacuumdb' , '--analyze-only' , '--no-truncate' , 'postgres' ] ,
'--analyze-only and --no-truncate specified together' ) ;
'--analyze-only and --no-truncate specified together' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--no-process-toast' , 'postgres' ] ,
[ 'vacuumdb' , '--no-process-toast' , 'postgres' ] ,
qr/statement: VACUUM \(PROCESS_TOAST FALSE\).*;/ ,
qr/statement: VACUUM \(PROCESS_TOAST FALSE, SKIP_DATABASE_STATS \).*;/ ,
'vacuumdb --no-process-toast' ) ;
'vacuumdb --no-process-toast' ) ;
$ node - > command_fails (
$ node - > command_fails (
[ 'vacuumdb' , '--analyze-only' , '--no-process-toast' , 'postgres' ] ,
[ 'vacuumdb' , '--analyze-only' , '--no-process-toast' , 'postgres' ] ,
'--analyze-only and --no-process-toast specified together' ) ;
'--analyze-only and --no-process-toast specified together' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-P' , 2 , 'postgres' ] ,
[ 'vacuumdb' , '-P' , 2 , 'postgres' ] ,
qr/statement: VACUUM \(PARALLEL 2\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, PARALLEL 2\).*;/ ,
'vacuumdb -P 2' ) ;
'vacuumdb -P 2' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '-P' , 0 , 'postgres' ] ,
[ 'vacuumdb' , '-P' , 0 , 'postgres' ] ,
qr/statement: VACUUM \(PARALLEL 0\).*;/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, PARALLEL 0\).*;/ ,
'vacuumdb -P 0' ) ;
'vacuumdb -P 0' ) ;
$ node - > command_ok ( [ qw( vacuumdb -Z --table=pg_am dbname=template1 ) ] ,
$ node - > command_ok ( [ qw( vacuumdb -Z --table=pg_am dbname=template1 ) ] ,
'vacuumdb with connection string' ) ;
'vacuumdb with connection string' ) ;
@ -119,7 +119,7 @@ $node->command_fails([ 'vacuumdb', '-P', -1, 'postgres' ],
'negative parallel degree' ) ;
'negative parallel degree' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--analyze' , '--table' , 'vactable(a, b)' , 'postgres' ] ,
[ 'vacuumdb' , '--analyze' , '--table' , 'vactable(a, b)' , 'postgres' ] ,
qr/statement: VACUUM \(ANALYZE\) public.vactable\(a, b\);/ ,
qr/statement: VACUUM \(SKIP_DATABASE_STATS, ANALYZE\) public.vactable\(a, b\);/ ,
'vacuumdb --analyze with complete column list' ) ;
'vacuumdb --analyze with complete column list' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--analyze-only' , '--table' , 'vactable(b)' , 'postgres' ] ,
[ 'vacuumdb' , '--analyze-only' , '--table' , 'vactable(b)' , 'postgres' ] ,
@ -150,7 +150,7 @@ $node->issues_sql_like(
'vacuumdb --table --min-xid-age' ) ;
'vacuumdb --table --min-xid-age' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--schema' , '"Foo"' , 'postgres' ] ,
[ 'vacuumdb' , '--schema' , '"Foo"' , 'postgres' ] ,
qr/VACUUM "Foo".bar/ ,
qr/VACUUM \(SKIP_DATABASE_STATS\) "Foo".bar/ ,
'vacuumdb --schema' ) ;
'vacuumdb --schema' ) ;
$ node - > issues_sql_like (
$ node - > issues_sql_like (
[ 'vacuumdb' , '--exclude-schema' , '"Foo"' , 'postgres' ] ,
[ 'vacuumdb' , '--exclude-schema' , '"Foo"' , 'postgres' ] ,