|
|
|
@ -68,7 +68,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--no-data', |
|
|
|
|
'--sequence-data', |
|
|
|
|
'--binary-upgrade', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'--dbname' => 'postgres', # alternative way to specify database |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
@ -76,7 +76,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--verbose', |
|
|
|
|
'--file' => "$tempdir/binary_upgrade.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/binary_upgrade.dump", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -90,13 +90,13 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--compress' => '1', |
|
|
|
|
'--file' => "$tempdir/compression_gzip_custom.dump", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--file' => "$tempdir/compression_gzip_custom.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_gzip_custom.dump", |
|
|
|
|
], |
|
|
|
|
command_like => { |
|
|
|
@ -119,7 +119,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--compress' => 'gzip:1', |
|
|
|
|
'--file' => "$tempdir/compression_gzip_dir", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Give coverage for manually compressed blobs.toc files during |
|
|
|
@ -137,7 +137,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_restore', |
|
|
|
|
'--jobs' => '2', |
|
|
|
|
'--file' => "$tempdir/compression_gzip_dir.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_gzip_dir", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -150,7 +150,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'plain', |
|
|
|
|
'--compress' => '1', |
|
|
|
|
'--file' => "$tempdir/compression_gzip_plain.sql.gz", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Decompress the generated file to run through the tests. |
|
|
|
@ -169,13 +169,13 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--compress' => 'lz4', |
|
|
|
|
'--file' => "$tempdir/compression_lz4_custom.dump", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--file' => "$tempdir/compression_lz4_custom.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_lz4_custom.dump", |
|
|
|
|
], |
|
|
|
|
command_like => { |
|
|
|
@ -198,7 +198,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--compress' => 'lz4:1', |
|
|
|
|
'--file' => "$tempdir/compression_lz4_dir", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Verify that data files were compressed |
|
|
|
@ -210,7 +210,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_restore', |
|
|
|
|
'--jobs' => '2', |
|
|
|
|
'--file' => "$tempdir/compression_lz4_dir.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_lz4_dir", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -223,7 +223,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'plain', |
|
|
|
|
'--compress' => 'lz4', |
|
|
|
|
'--file' => "$tempdir/compression_lz4_plain.sql.lz4", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Decompress the generated file to run through the tests. |
|
|
|
@ -245,13 +245,13 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--compress' => 'zstd', |
|
|
|
|
'--file' => "$tempdir/compression_zstd_custom.dump", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--file' => "$tempdir/compression_zstd_custom.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_zstd_custom.dump", |
|
|
|
|
], |
|
|
|
|
command_like => { |
|
|
|
@ -273,7 +273,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--compress' => 'zstd:1', |
|
|
|
|
'--file' => "$tempdir/compression_zstd_dir", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Give coverage for manually compressed blobs.toc files during |
|
|
|
@ -294,7 +294,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_restore', |
|
|
|
|
'--jobs' => '2', |
|
|
|
|
'--file' => "$tempdir/compression_zstd_dir.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/compression_zstd_dir", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -308,7 +308,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'plain', |
|
|
|
|
'--compress' => 'zstd:long', |
|
|
|
|
'--file' => "$tempdir/compression_zstd_plain.sql.zst", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
# Decompress the generated file to run through the tests. |
|
|
|
@ -327,7 +327,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/clean.sql", |
|
|
|
|
'--clean', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'--dbname' => 'postgres', # alternative way to specify database |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -338,7 +338,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--clean', |
|
|
|
|
'--if-exists', |
|
|
|
|
'--encoding' => 'UTF8', # no-op, just for testing |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -357,7 +357,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--create', |
|
|
|
|
'--no-reconnect', # no-op, just for testing |
|
|
|
|
'--verbose', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -376,7 +376,7 @@ my %pgdump_runs = ( |
|
|
|
|
dump_cmd => [ |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/defaults.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -385,7 +385,7 @@ my %pgdump_runs = ( |
|
|
|
|
dump_cmd => [ |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/defaults_no_public.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'regress_pg_dump_test', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -395,7 +395,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--clean', |
|
|
|
|
'--file' => "$tempdir/defaults_no_public_clean.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'regress_pg_dump_test', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -404,7 +404,7 @@ my %pgdump_runs = ( |
|
|
|
|
dump_cmd => [ |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/defaults_public_owner.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'regress_public_owner', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -419,14 +419,14 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--file' => "$tempdir/defaults_custom_format.dump", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--format' => 'custom', |
|
|
|
|
'--file' => "$tempdir/defaults_custom_format.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/defaults_custom_format.dump", |
|
|
|
|
], |
|
|
|
|
command_like => { |
|
|
|
@ -451,14 +451,14 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--file' => "$tempdir/defaults_dir_format", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--file' => "$tempdir/defaults_dir_format.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/defaults_dir_format", |
|
|
|
|
], |
|
|
|
|
command_like => { |
|
|
|
@ -484,13 +484,13 @@ my %pgdump_runs = ( |
|
|
|
|
'--format' => 'directory', |
|
|
|
|
'--jobs' => 2, |
|
|
|
|
'--file' => "$tempdir/defaults_parallel", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--file' => "$tempdir/defaults_parallel.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/defaults_parallel", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -502,14 +502,14 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', |
|
|
|
|
'--format' => 'tar', |
|
|
|
|
'--file' => "$tempdir/defaults_tar_format.tar", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--format' => 'tar', |
|
|
|
|
'--file' => "$tempdir/defaults_tar_format.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/defaults_tar_format.tar", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -518,7 +518,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/exclude_dump_test_schema.sql", |
|
|
|
|
'--exclude-schema' => 'dump_test', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -527,7 +527,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/exclude_test_table.sql", |
|
|
|
|
'--exclude-table' => 'dump_test.test_table', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -536,7 +536,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/exclude_measurement.sql", |
|
|
|
|
'--exclude-table-and-children' => 'dump_test.measurement', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -546,7 +546,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/exclude_measurement_data.sql", |
|
|
|
|
'--exclude-table-data-and-children' => 'dump_test.measurement', |
|
|
|
|
'--no-unlogged-table-data', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -556,7 +556,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/exclude_test_table_data.sql", |
|
|
|
|
'--exclude-table-data' => 'dump_test.test_table', |
|
|
|
|
'--no-unlogged-table-data', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -575,7 +575,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/pg_dumpall_globals.sql", |
|
|
|
|
'--globals-only', |
|
|
|
|
'--no-sync', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
pg_dumpall_globals_clean => { |
|
|
|
@ -585,14 +585,14 @@ my %pgdump_runs = ( |
|
|
|
|
'--globals-only', |
|
|
|
|
'--clean', |
|
|
|
|
'--no-sync', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
pg_dumpall_dbprivs => { |
|
|
|
|
dump_cmd => [ |
|
|
|
|
'pg_dumpall', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/pg_dumpall_dbprivs.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
pg_dumpall_exclude => { |
|
|
|
@ -602,7 +602,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/pg_dumpall_exclude.sql", |
|
|
|
|
'--exclude-database' => '*dump_test*', |
|
|
|
|
'--no-sync', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
no_toast_compression => { |
|
|
|
@ -610,7 +610,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_toast_compression.sql", |
|
|
|
|
'--no-toast-compression', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -619,7 +619,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_large_objects.sql", |
|
|
|
|
'--no-large-objects', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -628,7 +628,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_policies.sql", |
|
|
|
|
'--no-policies', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -637,7 +637,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_privs.sql", |
|
|
|
|
'--no-privileges', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -646,7 +646,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_owner.sql", |
|
|
|
|
'--no-owner', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -655,7 +655,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/no_table_access_method.sql", |
|
|
|
|
'--no-table-access-method', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -664,7 +664,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/only_dump_test_schema.sql", |
|
|
|
|
'--schema' => 'dump_test', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -675,7 +675,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--table' => 'dump_test.test_table', |
|
|
|
|
'--lock-wait-timeout' => |
|
|
|
|
(1000 * $PostgreSQL::Test::Utils::timeout_default), |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -686,7 +686,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--table-and-children' => 'dump_test.measurement', |
|
|
|
|
'--lock-wait-timeout' => |
|
|
|
|
(1000 * $PostgreSQL::Test::Utils::timeout_default), |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -696,7 +696,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/role.sql", |
|
|
|
|
'--role' => 'regress_dump_test_role', |
|
|
|
|
'--schema' => 'dump_test_second_schema', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -709,13 +709,13 @@ my %pgdump_runs = ( |
|
|
|
|
'--file' => "$tempdir/role_parallel", |
|
|
|
|
'--role' => 'regress_dump_test_role', |
|
|
|
|
'--schema' => 'dump_test_second_schema', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
restore_cmd => [ |
|
|
|
|
'pg_restore', |
|
|
|
|
'--file' => "$tempdir/role_parallel.sql", |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
"$tempdir/role_parallel", |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -744,7 +744,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/section_pre_data.sql", |
|
|
|
|
'--section' => 'pre-data', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -753,7 +753,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/section_data.sql", |
|
|
|
|
'--section' => 'data', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -762,7 +762,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
'--file' => "$tempdir/section_post_data.sql", |
|
|
|
|
'--section' => 'post-data', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -773,7 +773,7 @@ my %pgdump_runs = ( |
|
|
|
|
'--schema' => 'dump_test', |
|
|
|
|
'--large-objects', |
|
|
|
|
'--no-large-objects', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
'postgres', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -789,7 +789,7 @@ my %pgdump_runs = ( |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
"--file=$tempdir/no_data_no_schema.sql", '--no-data', |
|
|
|
|
'--no-schema', 'postgres', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
statistics_only => { |
|
|
|
@ -803,7 +803,7 @@ my %pgdump_runs = ( |
|
|
|
|
dump_cmd => [ |
|
|
|
|
'pg_dump', '--no-sync', |
|
|
|
|
"--file=$tempdir/no_schema.sql", '--no-schema', |
|
|
|
|
'--with-statistics', 'postgres', |
|
|
|
|
'--statistics', 'postgres', |
|
|
|
|
], |
|
|
|
|
},); |
|
|
|
|
|
|
|
|
@ -5206,10 +5206,10 @@ command_fails_like( |
|
|
|
|
'--port' => $port, |
|
|
|
|
'--strict-names', |
|
|
|
|
'--schema-only', |
|
|
|
|
'--with-statistics', |
|
|
|
|
'--statistics', |
|
|
|
|
], |
|
|
|
|
qr/\Qpg_dump: error: options -s\/--schema-only and --with-statistics cannot be used together\E/, |
|
|
|
|
'cannot use --schema-only and --with-statistics together'); |
|
|
|
|
qr/\Qpg_dump: error: options -s\/--schema-only and --statistics cannot be used together\E/, |
|
|
|
|
'cannot use --schema-only and --statistics together'); |
|
|
|
|
|
|
|
|
|
command_fails_like( |
|
|
|
|
[ |
|
|
|
|