forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit08859bb
committed
Fix replication with replica identity full
The comparison with the target rows on the subscriber side was done withdatumIsEqual(), which can have false negatives. For instance, it didn'twork reliably for text columns. So use the equality operator providedby the type cache instead.Also add more user documentation about replica identity requirements.Reported-by: Tatsuo Ishii <ishii@sraoss.co.jp>1 parent0b13b2a commit08859bb
File tree
3 files changed
+59
-11
lines changed- doc/src/sgml
- src
- backend/executor
- test/subscription/t
3 files changed
+59
-11
lines changedLines changed: 23 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
118 | 136 |
| |
119 | 137 |
| |
120 | 138 |
| |
|
Lines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| 34 | + | |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
| |||
224 | 226 |
| |
225 | 227 |
| |
226 | 228 |
| |
227 |
| - | |
228 | 229 |
| |
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
232 | 233 |
| |
233 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 |
| |
235 | 239 |
| |
236 | 240 |
| |
| |||
245 | 249 |
| |
246 | 250 |
| |
247 | 251 |
| |
248 |
| - | |
249 |
| - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
250 | 263 |
| |
251 | 264 |
| |
252 | 265 |
| |
|
Lines changed: 20 additions & 3 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 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
| |||
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
| 40 | + | |
36 | 41 |
| |
37 | 42 |
| |
38 | 43 |
| |
| |||
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
48 |
| - | |
| 53 | + | |
49 | 54 |
| |
50 | 55 |
| |
51 | 56 |
| |
| |||
108 | 113 |
| |
109 | 114 |
| |
110 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 |
| |
112 | 121 |
| |
113 | 122 |
| |
114 | 123 |
| |
115 | 124 |
| |
116 |
| - | |
| 125 | + | |
117 | 126 |
| |
| 127 | + | |
118 | 128 |
| |
119 | 129 |
| |
120 | 130 |
| |
| |||
125 | 135 |
| |
126 | 136 |
| |
127 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
128 | 145 |
| |
129 | 146 |
| |
130 | 147 |
| |
|
0 commit comments
Comments
(0)