- Notifications
You must be signed in to change notification settings - Fork28
Commit013c117
committed
Remove the NODROP SLOT option from DROP SUBSCRIPTION
It turned out this approach had problems, because a DROP command shouldnot have any options other than CASCADE and RESTRICT. Instead, alwaysattempt to drop the slot if there is one configured, but also add anALTER SUBSCRIPTION action to set the slot to NONE.Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/29431.1493730652@sss.pgh.pa.us1 parentc4c493f commit013c117
File tree
20 files changed
+198
-128
lines changed- doc/src/sgml/ref
- src
- backend
- catalog
- commands
- nodes
- parser
- replication/logical
- bin/psql
- include
- catalog
- nodes
- parser
- test
- modules/dummy_seclabel
- expected
- sql
- regress
- expected
- sql
- subscription/t
20 files changed
+198
-128
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
136 | 145 |
| |
137 | 146 |
| |
138 | 147 |
| |
|
Lines changed: 9 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
| |||
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
| 62 | + | |
| 63 | + | |
68 | 64 |
| |
| 65 | + | |
69 | 66 |
| |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
| 67 | + | |
| 68 | + | |
74 | 69 |
| |
75 | 70 |
| |
76 | 71 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
86 |
| - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 |
| |
88 | 90 |
| |
89 | 91 |
| |
| |||
147 | 149 |
| |
148 | 150 |
| |
149 | 151 |
| |
150 |
| - | |
| 152 | + | |
| 153 | + | |
151 | 154 |
| |
152 | 155 |
| |
153 | 156 |
| |
|
0 commit comments
Comments
(0)