forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5cfcd46

Amit Kapila
Fix Alter Subscription's Add/Drop Publication behavior.
The current refresh behavior tries to just refresh added/droppedpublications but that leads to removing wrong tables from subscription. Wecan't refresh just the dropped publication because it is quite possiblethat some of the tables are removed from publication by that time and nowthose will remain as part of the subscription. Also, there is a chancethat the tables that were part of the publication being dropped are alsopart of another publication, so we can't remove those.So, we decided that by default, add/drop commands will also act likeREFRESH PUBLICATION which means they will refresh all the publications. Wecan keep the old behavior for "add publication" but it is better to beconsistent with "drop publication".Author: Hou ZhijieReviewed-by: Masahiko Sawada, Amit KapilaBackpatch-through: 14, where it was introducedDiscussion:https://postgr.es/m/OS0PR01MB5716935D4C2CC85A6143073F94EF9@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parent779557b commit5cfcd46
File tree
6 files changed
+105
-21
lines changed- doc/src/sgml/ref
- src
- backend/commands
- bin/psql
- test
- regress
- expected
- sql
- subscription/t
6 files changed
+105
-21
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 |
| - | |
110 |
| - | |
111 |
| - | |
| 109 | + | |
112 | 110 |
| |
113 | 111 |
| |
114 | 112 |
| |
| |||
129 | 127 |
| |
130 | 128 |
| |
131 | 129 |
| |
132 |
| - | |
133 |
| - | |
| 130 | + | |
134 | 131 |
| |
135 | 132 |
| |
136 | 133 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
960 | 960 |
| |
961 | 961 |
| |
962 | 962 |
| |
963 |
| - | |
964 |
| - | |
| 963 | + | |
965 | 964 |
| |
966 | 965 |
| |
967 | 966 |
| |
| |||
986 | 985 |
| |
987 | 986 |
| |
988 | 987 |
| |
989 |
| - | |
990 |
| - | |
| 988 | + | |
| 989 | + | |
991 | 990 |
| |
992 | 991 |
| |
993 | 992 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1675 | 1675 |
| |
1676 | 1676 |
| |
1677 | 1677 |
| |
1678 |
| - | |
| 1678 | + | |
1679 | 1679 |
| |
1680 |
| - | |
| 1680 | + | |
1681 | 1681 |
| |
1682 |
| - | |
1683 |
| - | |
1684 |
| - | |
1685 |
| - | |
1686 | 1682 |
| |
1687 | 1683 |
| |
1688 | 1684 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 | 233 |
| |
237 | 234 |
| |
238 | 235 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 | 174 |
| |
178 | 175 |
| |
179 | 176 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + |
0 commit comments
Comments
(0)