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

Amit Kapila
Invalidate relcache for publications defined for all tables.
Updates/Deletes on a relation were allowed even without replica identityafter we define the publication for all tables. This would later lead toan error on subscribers. The reason was that for such publications we werenot invalidating the relcache and the publication information forrelations was not getting rebuilt. Similarly, we were not invalidating therelcache after dropping of such publications which will prohibitUpdates/Deletes without replica identity even without any publication.Author: Vignesh C and Hou ZhijieReviewed-by: Hou Zhijie, Kyotaro Horiguchi, Amit KapilaBackpatch-through: 10, where it was introducedDiscussion:https://postgr.es/m/CALDaNm0pF6zeWqCA8TCe2sDuwFAy8fCqba=nHampCKag-qLixg@mail.gmail.com1 parentaa37a43 commit8bd5342
File tree
5 files changed
+68
-1
lines changed- src
- backend
- catalog
- commands
- include/commands
- test/regress
- expected
- sql
5 files changed
+68
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1460 | 1460 |
| |
1461 | 1461 |
| |
1462 | 1462 |
| |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1463 | 1467 |
| |
1464 | 1468 |
| |
1465 | 1469 |
| |
| |||
1478 | 1482 |
| |
1479 | 1483 |
| |
1480 | 1484 |
| |
1481 |
| - | |
1482 | 1485 |
| |
1483 | 1486 |
| |
1484 | 1487 |
| |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 |
| |
238 | 243 |
| |
239 | 244 |
| |
| |||
504 | 509 |
| |
505 | 510 |
| |
506 | 511 |
| |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
507 | 541 |
| |
508 | 542 |
| |
509 | 543 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
161 | 176 |
| |
162 | 177 |
| |
163 | 178 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 |
| |
97 | 111 |
| |
98 | 112 |
| |
|
0 commit comments
Comments
(0)