|
632 | 632 | 'postgres', |
633 | 633 | ], |
634 | 634 | }, |
| 635 | + no_policies_restore => { |
| 636 | + dump_cmd => [ |
| 637 | + 'pg_dump', '--no-sync', |
| 638 | + '--format' => 'custom', |
| 639 | + '--file' => "$tempdir/no_policies_restore.dump", |
| 640 | + '--statistics', |
| 641 | + 'postgres', |
| 642 | + ], |
| 643 | + restore_cmd => [ |
| 644 | + 'pg_restore', |
| 645 | + '--format' => 'custom', |
| 646 | + '--file' => "$tempdir/no_policies_restore.sql", |
| 647 | + '--no-policies', |
| 648 | + '--statistics', |
| 649 | + "$tempdir/no_policies_restore.dump", |
| 650 | + ], |
| 651 | + }, |
635 | 652 | no_privs => { |
636 | 653 | dump_cmd => [ |
637 | 654 | 'pg_dump', '--no-sync', |
|
897 | 914 | no_large_objects => 1, |
898 | 915 | no_owner => 1, |
899 | 916 | no_policies => 1, |
| 917 | + no_policies_restore => 1, |
900 | 918 | no_privs => 1, |
901 | 919 | no_statistics => 1, |
902 | 920 | no_subscriptions => 1, |
|
1540 | 1558 | exclude_dump_test_schema => 1, |
1541 | 1559 | exclude_test_table => 1, |
1542 | 1560 | no_policies => 1, |
| 1561 | + no_policies_restore => 1, |
1543 | 1562 | only_dump_measurement => 1, |
1544 | 1563 | }, |
1545 | 1564 | }, |
|
1858 | 1877 | }, |
1859 | 1878 | }, |
1860 | 1879 |
|
| 1880 | + 'COMMENT ON POLICY p1' => { |
| 1881 | + create_order => 55, |
| 1882 | + create_sql => 'COMMENT ON POLICY p1 ON dump_test.test_table |
| 1883 | + IS \'comment on policy\';', |
| 1884 | + regexp => |
| 1885 | + qr/^COMMENT ON POLICY p1 ON dump_test.test_table IS 'comment on policy';/m, |
| 1886 | + like => { |
| 1887 | + %full_runs, |
| 1888 | + %dump_test_schema_runs, |
| 1889 | + only_dump_test_table => 1, |
| 1890 | + section_post_data => 1, |
| 1891 | + }, |
| 1892 | + unlike => { |
| 1893 | + exclude_dump_test_schema => 1, |
| 1894 | + exclude_test_table => 1, |
| 1895 | + no_policies => 1, |
| 1896 | + no_policies_restore => 1, |
| 1897 | + only_dump_measurement => 1, |
| 1898 | + }, |
| 1899 | + }, |
| 1900 | +
|
1861 | 1901 | 'COMMENT ON PUBLICATION pub1' => { |
1862 | 1902 | create_order => 55, |
1863 | 1903 | create_sql => 'COMMENT ON PUBLICATION pub1 |
|
3224 | 3264 | exclude_dump_test_schema => 1, |
3225 | 3265 | exclude_test_table => 1, |
3226 | 3266 | no_policies => 1, |
| 3267 | + no_policies_restore => 1, |
3227 | 3268 | only_dump_measurement => 1, |
3228 | 3269 | }, |
3229 | 3270 | }, |
|
3246 | 3287 | exclude_dump_test_schema => 1, |
3247 | 3288 | exclude_test_table => 1, |
3248 | 3289 | no_policies => 1, |
| 3290 | + no_policies_restore => 1, |
3249 | 3291 | only_dump_measurement => 1, |
3250 | 3292 | }, |
3251 | 3293 | }, |
|
3268 | 3310 | exclude_dump_test_schema => 1, |
3269 | 3311 | exclude_test_table => 1, |
3270 | 3312 | no_policies => 1, |
| 3313 | + no_policies_restore => 1, |
3271 | 3314 | only_dump_measurement => 1, |
3272 | 3315 | }, |
3273 | 3316 | }, |
|
3290 | 3333 | exclude_dump_test_schema => 1, |
3291 | 3334 | exclude_test_table => 1, |
3292 | 3335 | no_policies => 1, |
| 3336 | + no_policies_restore => 1, |
3293 | 3337 | only_dump_measurement => 1, |
3294 | 3338 | }, |
3295 | 3339 | }, |
|
3312 | 3356 | exclude_dump_test_schema => 1, |
3313 | 3357 | exclude_test_table => 1, |
3314 | 3358 | no_policies => 1, |
| 3359 | + no_policies_restore => 1, |
3315 | 3360 | only_dump_measurement => 1, |
3316 | 3361 | }, |
3317 | 3362 | }, |
|
3334 | 3379 | exclude_dump_test_schema => 1, |
3335 | 3380 | exclude_test_table => 1, |
3336 | 3381 | no_policies => 1, |
| 3382 | + no_policies_restore => 1, |
3337 | 3383 | only_dump_measurement => 1, |
3338 | 3384 | }, |
3339 | 3385 | }, |
|
0 commit comments