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

Amit Kapila
Fix the missing table sync due to improper invalidation handling.
We missed performing table sync if the invalidation happened while thenon-ready tables list was being prepared. This occurs because the syncstate was set to valid at the end of non-ready table list preparationirrespective of the invalidations processed while the list is beingprepared.Fix it by changing the boolean variable to a tri-state enum and by settingtable state to valid only if no invalidations have occurred while the listis being prepared.Reprted-by: Alexander LakhinDiagnosed-by: Alexander LakhinAuthor: Vignesh CReviewed-by: Hou Zhijie, Alexander Lakhin, Ajin Cherian, Amit KapilaBackpatch-through: 15Discussion:https://postgr.es/m/711a6afe-edb7-1211-cc27-1bef8239eec7@gmail.com1 parent5e85bc3 commit28a8cc4
File tree
2 files changed
+22
-4
lines changed- src
- backend/replication/logical
- tools/pgindent
2 files changed
+22
-4
lines changedLines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 |
| - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
124 | 131 |
| |
125 | 132 |
| |
126 | 133 |
| |
| |||
270 | 277 |
| |
271 | 278 |
| |
272 | 279 |
| |
273 |
| - | |
| 280 | + | |
274 | 281 |
| |
275 | 282 |
| |
276 | 283 |
| |
| |||
1465 | 1472 |
| |
1466 | 1473 |
| |
1467 | 1474 |
| |
1468 |
| - | |
| 1475 | + | |
1469 | 1476 |
| |
1470 | 1477 |
| |
1471 | 1478 |
| |
1472 | 1479 |
| |
1473 | 1480 |
| |
1474 | 1481 |
| |
| 1482 | + | |
| 1483 | + | |
1475 | 1484 |
| |
1476 | 1485 |
| |
1477 | 1486 |
| |
| |||
1505 | 1514 |
| |
1506 | 1515 |
| |
1507 | 1516 |
| |
1508 |
| - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1509 | 1526 |
| |
1510 | 1527 |
| |
1511 | 1528 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2635 | 2635 |
| |
2636 | 2636 |
| |
2637 | 2637 |
| |
| 2638 | + | |
2638 | 2639 |
| |
2639 | 2640 |
| |
2640 | 2641 |
| |
|
0 commit comments
Comments
(0)