forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc2e0954
committed
Relax overly strict assertion
Ever since its birth, ReorderBufferBuildTupleCidHash() has contained anassertion that a catalog tuple cannot change Cmax after acquiring one. Butthat's wrong: if a subtransaction executes DDL that affects that catalogtuple, and later aborts and another DDL affects the same tuple, it willchange Cmax. Relax the assertion to merely verify that the Cmax remainsvalid and monotonically increasing, instead.Add a test that tickles the relevant code.Diagnosed by, and initial patch submitted by: Arseny SherCo-authored-by: Arseny SherDiscussion:https://postgr.es/m/874l9p8hyw.fsf@ars-thinkpad1 parenta4c6a73 commitc2e0954
File tree
3 files changed
+40
-5
lines changed- contrib/test_decoding
- expected
- sql
- src/backend/replication/logical
3 files changed
+40
-5
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
412 | 430 |
| |
413 | 431 |
| |
414 | 432 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
237 | 250 |
| |
238 | 251 |
| |
239 | 252 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1326 | 1326 |
| |
1327 | 1327 |
| |
1328 | 1328 |
| |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1329 | 1333 |
| |
1330 |
| - | |
1331 |
| - | |
1332 | 1334 |
| |
1333 | 1335 |
| |
1334 |
| - | |
1335 |
| - | |
1336 |
| - | |
| 1336 | + | |
| 1337 | + | |
1337 | 1338 |
| |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1338 | 1342 |
| |
1339 | 1343 |
| |
1340 | 1344 |
| |
|
0 commit comments
Comments
(0)