forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit92685c3
committed
Close race condition between datfrozen and relfrozen updates.
vac_update_datfrozenxid() did multiple loads of relfrozenxid andrelminmxid from buffer memory, and it assumed each would get the samevalue. Not so if a concurrent vac_update_relstats() did an inplaceupdate. Commit2d2e40e fixed the samekind of bug in vac_truncate_clog(). Today's bug could cause therel-level field and XIDs in the rel's rows to precede the db-levelfield. A cluster having such values should VACUUM affected tables.Back-patch to v12 (all supported versions).Discussion:https://postgr.es/m/20240423003956.e7.nmisch@google.com1 parentb19255c commit92685c3
1 file changed
+16
-12
lines changedLines changed: 16 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1633 | 1633 |
| |
1634 | 1634 |
| |
1635 | 1635 |
| |
| 1636 | + | |
| 1637 | + | |
1636 | 1638 |
| |
1637 | 1639 |
| |
1638 | 1640 |
| |
| |||
1641 | 1643 |
| |
1642 | 1644 |
| |
1643 | 1645 |
| |
1644 |
| - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
1645 | 1649 |
| |
1646 | 1650 |
| |
1647 | 1651 |
| |
| |||
1651 | 1655 |
| |
1652 | 1656 |
| |
1653 | 1657 |
| |
1654 |
| - | |
1655 |
| - | |
| 1658 | + | |
| 1659 | + | |
1656 | 1660 |
| |
1657 | 1661 |
| |
1658 | 1662 |
| |
| |||
1671 | 1675 |
| |
1672 | 1676 |
| |
1673 | 1677 |
| |
1674 |
| - | |
| 1678 | + | |
1675 | 1679 |
| |
1676 |
| - | |
| 1680 | + | |
1677 | 1681 |
| |
1678 | 1682 |
| |
1679 |
| - | |
| 1683 | + | |
1680 | 1684 |
| |
1681 | 1685 |
| |
1682 | 1686 |
| |
1683 | 1687 |
| |
1684 | 1688 |
| |
1685 | 1689 |
| |
1686 |
| - | |
1687 |
| - | |
| 1690 | + | |
| 1691 | + | |
1688 | 1692 |
| |
1689 | 1693 |
| |
1690 |
| - | |
| 1694 | + | |
1691 | 1695 |
| |
1692 | 1696 |
| |
1693 |
| - | |
| 1697 | + | |
1694 | 1698 |
| |
1695 | 1699 |
| |
1696 | 1700 |
| |
1697 | 1701 |
| |
1698 | 1702 |
| |
1699 | 1703 |
| |
1700 |
| - | |
1701 |
| - | |
| 1704 | + | |
| 1705 | + | |
1702 | 1706 |
| |
1703 | 1707 |
| |
1704 | 1708 |
| |
|
0 commit comments
Comments
(0)