Commit aa79bde
Amit Kapila
Fix the missing table sync due to improper invalidation handling.
We missed performing table sync if the invalidation happened while the
non-ready tables list was being prepared. This occurs because the sync
state was set to valid at the end of non-ready table list preparation
irrespective of the invalidations processed while the list is being
prepared.
Fix it by changing the boolean variable to a tri-state enum and by setting
table state to valid only if no invalidations have occurred while the list
is being prepared.
Reprted-by: Alexander Lakhin
Diagnosed-by: Alexander Lakhin
Author: Vignesh C
Reviewed-by: Hou Zhijie, Alexander Lakhin, Ajin Cherian, Amit Kapila
Backpatch-through: 15
Discussion: https://postgr.es/m/711a6afe-edb7-1211-cc27-1bef8239eec7@gmail.com1 parent ee3ef4a commit aa79bde
File tree
2 files changed
+22
-4
lines changed- src
- backend/replication/logical
- tools/pgindent
2 files changed
+22
-4
lines changed| 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 | | |
| |||
| 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