aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-11-22 10:56:07 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-11-22 10:56:07 +0100
commit1b3ed757145dd6fa29feb6a31084527a6d6a46e3 (patch)
treee0773e78985c9aff65b9123c4dcc95b3820691d2 /contrib/postgres_fdw/sql
parent385b317715179fd60b6a2899a3d10b13ca52ad4d (diff)
downloadpostgresql-1b3ed757145dd6fa29feb6a31084527a6d6a46e3.tar.gz
postgresql-1b3ed757145dd6fa29feb6a31084527a6d6a46e3.zip
Ignore invalidated slots while computing oldest catalog Xmin
Once a logical slot has acquired a catalog_xmin, it doesn't let go of it, even when invalidated by exceeding the max_slot_wal_keep_size, which means that dead catalog tuples are not removed by vacuum anymore since the point is invalidated, until the slot is dropped. This could be catastrophic 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.com
Diffstat (limited to 'contrib/postgres_fdw/sql')
0 files changed, 0 insertions, 0 deletions