]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix key size of PrivateRefCountHash.
authorNathan Bossart <nathan@postgresql.org>
Thu, 4 Dec 2025 21:42:18 +0000 (15:42 -0600)
committerNathan Bossart <nathan@postgresql.org>
Thu, 4 Dec 2025 21:42:18 +0000 (15:42 -0600)
commit80f6e2fb4addb03e2e163a380b5e6e1f4b321286
treefd4e081bd558bf98ddda9f80e76d7ca2ceb1da13
parente158fd4d68f44d0872c1d2053067fe306cc9d2b2
Fix key size of PrivateRefCountHash.

The key is the first member of PrivateRefCountEntry, which has type
Buffer.  This commit changes the key size from sizeof(int32) to
sizeof(Buffer).  This appears to be an oversight in commit
4b4b680c3d, but it's of no consequence because Buffer has been a
signed 32-bit integer for a long time.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/aS77DTpl0fOkIKSZ%40ip-10-97-1-34.eu-west-3.compute.internal
src/backend/storage/buffer/bufmgr.c