aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2024-07-19 10:18:22 -0400
committerMelanie Plageman <melanieplageman@gmail.com>2024-07-19 12:04:11 -0400
commitaa607980aee08416211f003ab41aa750f5559712 (patch)
tree1b8bb952b58611168469cb7a7ff7c12d68706400 /src/backend/storage/buffer/bufmgr.c
parent83c39a1f7f3f507058d5bc9f121a42a1a2494180 (diff)
downloadpostgresql-aa607980aee08416211f003ab41aa750f5559712.tar.gz
postgresql-aa607980aee08416211f003ab41aa750f5559712.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/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions