aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2024-07-19 11:11:19 -0400
committerMelanie Plageman <melanieplageman@gmail.com>2024-07-19 12:05:57 -0400
commite2e992820f104defeea421fd0927b763421a0396 (patch)
tree2bca297f39099fe4121cebae9147cc28e1226467 /src/backend/utils/adt/arrayfuncs.c
parentdc6354c67017a3fe60744fcfe4936d14d72f2d7c (diff)
downloadpostgresql-e2e992820f104defeea421fd0927b763421a0396.tar.gz
postgresql-e2e992820f104defeea421fd0927b763421a0396.zip
Test that vacuum removes tuples older than OldestXmin
If vacuum fails to prune a tuple killed before OldestXmin, it will later find that tuple dead in lazy_scan_prune() and loop infinitely. 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. Discussion of the bug: https://postgr.es/m/CAAKRu_Y_NJzF4-8gzTTeaOuUL3CcGoXPjXcAHbTTygT8AyVqag%40mail.gmail.com Discussion of the test: https://postgr.es/m/CAAKRu_apNU2MPBK96V%2BbXjTq0RiZ-%3DA4ZTaysakpx9jxbq1dbQ%40mail.gmail.com Author: Melanie Plageman Reviewed-by: Peter Geoghegan
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions