forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit00029de
committed
Improve parsing of options of CREATE/ALTER SUBSCRIPTION
This simplifies the code so as it is not necessary anymore for thecaller of parse_subscription_options() to zero SubOpts, holding abitmaps of the provided options as well as the default/parsed optionvalues. This also simplifies some checks related to the optionssupported by a command when checking for incompatibilities.While on it, the errors generated for unsupported combinations with"slot_name = NONE" are reordered. This may generate a different errorscompared to the previous major versions, but users have to go throughall those errors to get a correct command in this case when usingincorrect values for options "enabled" and "create\slot", so at the endthe resulting command would remain the same.Author: Peter SmithReviewed-by: Nathan BossartDiscussion:https://postgr.es/m/CAHut+PtXHfLgLHDDJ8ZN5f5Be_37mJoxpEsRg8LNmm4XCr06Rw@mail.gmail.com1 parentf99870d commit00029de
File tree
3 files changed
+35
-42
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+35
-42
lines changedLines changed: 33 additions & 40 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
99 |
| - | |
100 | 98 |
| |
101 | 99 |
| |
102 | 100 |
| |
103 | 101 |
| |
104 | 102 |
| |
105 | 103 |
| |
106 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 |
| |
108 | 109 |
| |
109 | 110 |
| |
| |||
262 | 263 |
| |
263 | 264 |
| |
264 | 265 |
| |
265 |
| - | |
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
274 |
| - | |
275 | 274 |
| |
276 | 275 |
| |
277 | 276 |
| |
278 | 277 |
| |
279 | 278 |
| |
280 | 279 |
| |
281 | 280 |
| |
282 |
| - | |
283 | 281 |
| |
284 | 282 |
| |
285 | 283 |
| |
| |||
297 | 295 |
| |
298 | 296 |
| |
299 | 297 |
| |
300 |
| - | |
301 | 298 |
| |
302 | 299 |
| |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
329 | 315 |
| |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
338 | 331 |
| |
339 | 332 |
| |
340 | 333 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
0 commit comments
Comments
(0)