]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make VM clear take a RelFileLocator and not fake relcache
authorMelanie Plageman <melanieplageman@gmail.com>
Wed, 15 Jul 2026 21:24:49 +0000 (17:24 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Wed, 15 Jul 2026 21:24:49 +0000 (17:24 -0400)
commit2340fb8f02b28d2fe7f0023d84c3055a38cd5b9e
tree41ed6ec748a23dcf101d56ddbafb99a5891db2eb
parent10911fde088aef9c3be511955e9be632964f7a4a
Make VM clear take a RelFileLocator and not fake relcache

This brings it in line with visibilitymap_set(). An upcoming commit will
start reading visibility map buffers with XLogReadBuffer*() functions,
so we no longer require a relation object to pin the visibility map,
allowing us to remove this fake relcache business altogether.

While we're at it, remove a spurious const qualifier from the
RelFileLocator parameter to visibilitymap_set().

Author: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/flat/CAAKRu_bn%2Be7F4yPFBgFbnP%2BsyJRKyNK092bjD2LKvZW7O4Svag%40mail.gmail.com
contrib/pg_surgery/heap_surgery.c
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_xlog.c
src/backend/access/heap/pruneheap.c
src/backend/access/heap/visibilitymap.c
src/include/access/visibilitymap.h