Commit 77d2b15
committed
pg_restore: Fix comment handling with --no-publications / --no-subscriptions.
Previously, pg_restore did not skip comments on publications or subscriptions
even when --no-publications or --no-subscriptions was specified. As a result,
it could issue COMMENT commands for objects that were never created,
causing those commands to fail.
This commit fixes the issue by ensuring that comments on publications and
subscriptions are also skipped when the corresponding options are used.
Backpatch to all supported versions.
Author: Jian He <jian.universality@gmail.com>
Co-authored-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CACJufxHCt00pR9h51AVu6+yPD5J7JQn=7dQXxqacj0XyDhc-fA@mail.gmail.com
Backpatch-through: 131 parent e7a2bbd commit 77d2b15
2 files changed
+58
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3033 | 3033 | | |
3034 | 3034 | | |
3035 | 3035 | | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
3036 | 3050 | | |
3037 | 3051 | | |
3038 | 3052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
653 | 679 | | |
654 | 680 | | |
655 | 681 | | |
| |||
873 | 899 | | |
874 | 900 | | |
875 | 901 | | |
| 902 | + | |
| 903 | + | |
876 | 904 | | |
877 | 905 | | |
878 | 906 | | |
| |||
1844 | 1872 | | |
1845 | 1873 | | |
1846 | 1874 | | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
1847 | 1879 | | |
1848 | 1880 | | |
1849 | 1881 | | |
| |||
3361 | 3393 | | |
3362 | 3394 | | |
3363 | 3395 | | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
3364 | 3400 | | |
3365 | 3401 | | |
3366 | 3402 | | |
| |||
3372 | 3408 | | |
3373 | 3409 | | |
3374 | 3410 | | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
3375 | 3415 | | |
3376 | 3416 | | |
3377 | 3417 | | |
| |||
3383 | 3423 | | |
3384 | 3424 | | |
3385 | 3425 | | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
3386 | 3430 | | |
3387 | 3431 | | |
3388 | 3432 | | |
| |||
0 commit comments