forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1088729
committed
Remove incorrect assertion for INSERT in logical replication's publisher
On the publisher, it was assumed that an INSERT change cannot happen fora relation with no replica identity. However this is true only for achange that needs references to old rows, aka UPDATE or DELETE, sotrying to use logical replication with a relation that has no replicaidentity led to an assertion failure in the publisher when issuing anINSERT. This commit removes the incorrect assertion, and adds moreregression tests to provide coverage for relations without replicaidentity.Reported-by: Neha SharmaAuthor: Dilip Kumar, Michael PaquierReviewed-by: Andres FreundDiscussion:https://postgr.es/m/CANiYTQsL1Hb8_Km08qd32svrqNumXLJeoGo014O7VZymgOhZEA@mail.gmail.comBackpatch-through: 101 parent2c0cdc8 commit1088729
File tree
2 files changed
+14
-6
lines changed- src
- backend/replication/logical
- test/subscription/t
2 files changed
+14
-6
lines changedLines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 | 146 |
| |
151 | 147 |
| |
152 | 148 |
| |
|
Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 |
| |
38 | 42 |
| |
39 | 43 |
| |
| |||
42 | 46 |
| |
43 | 47 |
| |
44 | 48 |
| |
| 49 | + | |
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
| |||
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
62 |
| - | |
| 67 | + | |
63 | 68 |
| |
64 | 69 |
| |
65 | 70 |
| |
| |||
97 | 102 |
| |
98 | 103 |
| |
99 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 |
| |
101 | 109 |
| |
102 | 110 |
| |
| |||
117 | 125 |
| |
118 | 126 |
| |
119 | 127 |
| |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
120 | 132 |
| |
121 | 133 |
| |
122 | 134 |
| |
|
0 commit comments
Comments
(0)