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

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 parent9bbf6f7 commit1046a69
File tree
6 files changed
+105
-23
lines changed- doc/src/sgml/ref
- src
- backend/commands
- bin/psql
- test
- regress
- expected
- sql
- subscription/t
6 files changed
+105
-23
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
115 |
| - | |
116 |
| - | |
| 114 | + | |
117 | 115 |
| |
118 | 116 |
| |
119 | 117 |
| |
| |||
134 | 132 |
| |
135 | 133 |
| |
136 | 134 |
| |
137 |
| - | |
138 |
| - | |
| 135 | + | |
139 | 136 |
| |
140 | 137 |
| |
141 | 138 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1006 | 1006 |
| |
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
| 1009 | + | |
1013 | 1010 |
| |
1014 | 1011 |
| |
1015 | 1012 |
| |
| |||
1042 | 1039 |
| |
1043 | 1040 |
| |
1044 | 1041 |
| |
1045 |
| - | |
1046 |
| - | |
| 1042 | + | |
| 1043 | + | |
1047 | 1044 |
| |
1048 | 1045 |
| |
1049 | 1046 |
| |
|
Lines changed: 2 additions & 6 deletions
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 |
| |
|
Lines changed: 0 additions & 3 deletions
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 |
| |
|
Lines changed: 0 additions & 3 deletions
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 |
| |
|
Lines changed: 98 additions & 0 deletions
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)