@ -632,6 +632,23 @@ my %pgdump_runs = (
'postgres' ,
] ,
} ,
no_policies_restore = > {
dump_cmd = > [
'pg_dump' , '--no-sync' ,
'--format' = > 'custom' ,
'--file' = > "$tempdir/no_policies_restore.dump" ,
'--statistics' ,
'postgres' ,
] ,
restore_cmd = > [
'pg_restore' ,
'--format' = > 'custom' ,
'--file' = > "$tempdir/no_policies_restore.sql" ,
'--no-policies' ,
'--statistics' ,
"$tempdir/no_policies_restore.dump" ,
] ,
} ,
no_privs = > {
dump_cmd = > [
'pg_dump' , '--no-sync' ,
@ -897,6 +914,7 @@ my %full_runs = (
no_large_objects = > 1 ,
no_owner = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
no_privs = > 1 ,
no_statistics = > 1 ,
no_subscriptions = > 1 ,
@ -1539,6 +1557,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -1856,6 +1875,27 @@ my %tests = (
} ,
} ,
'COMMENT ON POLICY p1' = > {
create_order = > 55 ,
create_sql = > ' COMMENT ON POLICY p1 ON dump_test . test_table
IS \ 'comment on policy\';' ,
regexp = >
qr/^COMMENT ON POLICY p1 ON dump_test.test_table IS 'comment on policy';/ m ,
like = > {
% full_runs ,
% dump_test_schema_runs ,
only_dump_test_table = > 1 ,
section_post_data = > 1 ,
} ,
unlike = > {
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
'COMMENT ON PUBLICATION pub1' = > {
create_order = > 55 ,
create_sql = > ' COMMENT ON PUBLICATION pub1
@ -3222,6 +3262,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -3244,6 +3285,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -3266,6 +3308,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -3288,6 +3331,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -3310,6 +3354,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,
@ -3332,6 +3377,7 @@ my %tests = (
exclude_dump_test_schema = > 1 ,
exclude_test_table = > 1 ,
no_policies = > 1 ,
no_policies_restore = > 1 ,
only_dump_measurement = > 1 ,
} ,
} ,