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

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 parentee3ef4a commitaa79bde
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 | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 |
| - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 |
| |
128 | 135 |
| |
129 | 136 |
| |
| |||
273 | 280 |
| |
274 | 281 |
| |
275 | 282 |
| |
276 |
| - | |
| 283 | + | |
277 | 284 |
| |
278 | 285 |
| |
279 | 286 |
| |
| |||
1568 | 1575 |
| |
1569 | 1576 |
| |
1570 | 1577 |
| |
1571 |
| - | |
| 1578 | + | |
1572 | 1579 |
| |
1573 | 1580 |
| |
1574 | 1581 |
| |
1575 | 1582 |
| |
1576 | 1583 |
| |
1577 | 1584 |
| |
| 1585 | + | |
| 1586 | + | |
1578 | 1587 |
| |
1579 | 1588 |
| |
1580 | 1589 |
| |
| |||
1608 | 1617 |
| |
1609 | 1618 |
| |
1610 | 1619 |
| |
1611 |
| - | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1612 | 1629 |
| |
1613 | 1630 |
| |
1614 | 1631 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2764 | 2764 |
| |
2765 | 2765 |
| |
2766 | 2766 |
| |
| 2767 | + | |
2767 | 2768 |
| |
2768 | 2769 |
| |
2769 | 2770 |
| |
|
0 commit comments
Comments
(0)