aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2024-07-19 10:40:42 -0400
committerMelanie Plageman <melanieplageman@gmail.com>2024-07-19 12:12:03 -0400
commit80c34692e8e674e3b2f150f248ef2002ae2ac3a7 (patch)
treee1aa44fdd897cf47381549a442777ebb65af1ce6 /src/backend/utils/adt/xml.c
parentfd4f12df5e46793a651f2d0a272f88a6cf4b358c (diff)
downloadpostgresql-80c34692e8e674e3b2f150f248ef2002ae2ac3a7.tar.gz
postgresql-80c34692e8e674e3b2f150f248ef2002ae2ac3a7.zip
Test that vacuum removes tuples older than OldestXmin
If vacuum fails to prune a tuple killed before OldestXmin, it will decide to freeze its xmax and later error out in pre-freeze checks. Add a test reproducing this scenario to the recovery suite which creates a table on a primary, updates the table to generate dead tuples for vacuum, and then, during the vacuum, uses a replica to force GlobalVisState->maybe_needed on the primary to move backwards and precede the value of OldestXmin set at the beginning of vacuuming the table. This commit is separate from the fix in case there are test stability issues. Author: Melanie Plageman Reviewed-by: Peter Geoghegan Discussion: https://postgr.es/m/CAAKRu_apNU2MPBK96V%2BbXjTq0RiZ-%3DA4ZTaysakpx9jxbq1dbQ%40mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions