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

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 parentcd0678a commita9155ef
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 | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 |
| |
127 | 134 |
| |
128 | 135 |
| |
| |||
272 | 279 |
| |
273 | 280 |
| |
274 | 281 |
| |
275 |
| - | |
| 282 | + | |
276 | 283 |
| |
277 | 284 |
| |
278 | 285 |
| |
| |||
1556 | 1563 |
| |
1557 | 1564 |
| |
1558 | 1565 |
| |
1559 |
| - | |
| 1566 | + | |
1560 | 1567 |
| |
1561 | 1568 |
| |
1562 | 1569 |
| |
1563 | 1570 |
| |
1564 | 1571 |
| |
1565 | 1572 |
| |
| 1573 | + | |
| 1574 | + | |
1566 | 1575 |
| |
1567 | 1576 |
| |
1568 | 1577 |
| |
| |||
1596 | 1605 |
| |
1597 | 1606 |
| |
1598 | 1607 |
| |
1599 |
| - | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1600 | 1617 |
| |
1601 | 1618 |
| |
1602 | 1619 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2676 | 2676 |
| |
2677 | 2677 |
| |
2678 | 2678 |
| |
| 2679 | + | |
2679 | 2680 |
| |
2680 | 2681 |
| |
2681 | 2682 |
| |
|
0 commit comments
Comments
(0)