forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit944dc0f
committed
Check relkind of tables in CREATE/ALTER SUBSCRIPTION
We used to only check for a supported relkind on the subscriber duringreplication, which is needed to ensure that the setup is valid and wedon't crash. But it's also useful to tell the user immediately whenCREATE or ALTER SUBSCRIPTION is executed that the relation being addedto the subscription is not of a supported relkind.Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>Reported-by: tushar <tushar.ahuja@enterprisedb.com>1 parent0fbfb65 commit944dc0f
File tree
4 files changed
+37
-9
lines changed- src
- backend
- commands
- executor
- replication/logical
- include/executor
4 files changed
+37
-9
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
| |||
417 | 419 |
| |
418 | 420 |
| |
419 | 421 |
| |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
420 | 426 |
| |
421 | 427 |
| |
422 | 428 |
| |
| |||
529 | 535 |
| |
530 | 536 |
| |
531 | 537 |
| |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
532 | 543 |
| |
533 | 544 |
| |
534 | 545 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + |
Lines changed: 4 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
258 | 259 |
| |
259 | 260 |
| |
260 | 261 |
| |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
270 | 265 |
| |
271 | 266 |
| |
272 | 267 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
| 538 | + | |
| 539 | + | |
538 | 540 |
| |
539 | 541 |
|
0 commit comments
Comments
(0)