forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0557e17
committed
Ignore invalidated slots while computing oldest catalog Xmin
Once a logical slot has acquired a catalog_xmin, it doesn't let go ofit, even when invalidated by exceeding the max_slot_wal_keep_size, whichmeans that dead catalog tuples are not removed by vacuum anymore sincethe point is invalidated, until the slot is dropped. This could becatastrophic if catalog churn is high.Change the computation of Xmin to ignore invalidated slots,to prevent dead rows from accumulating.Backpatch to 13, where slot invalidation appeared.Author: Sirisha Chamarthi <sirichamarthi22@gmail.com>Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>Discussion:https://postgr.es/m/CAKrAKeUEDeqquN9vwzNeG-CN8wuVsfRYbeOUV9qKO_RHok=j+g@mail.gmail.com1 parent92daeca commit0557e17
2 files changed
+10
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
847 | 847 |
| |
848 | 848 |
| |
849 | 849 |
| |
| 850 | + | |
850 | 851 |
| |
851 | 852 |
| |
852 | 853 |
| |
853 | 854 |
| |
854 | 855 |
| |
855 | 856 |
| |
856 | 857 |
| |
| 858 | + | |
| 859 | + | |
857 | 860 |
| |
858 | 861 |
| |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
859 | 866 |
| |
860 | 867 |
| |
861 | 868 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3901 | 3901 |
| |
3902 | 3902 |
| |
3903 | 3903 |
| |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
3904 | 3907 |
| |
3905 | 3908 |
| |
3906 | 3909 |
| |
|
0 commit comments
Comments
(0)