Fix incorrect KeeperBlock macro in bump.c
authorDavid Rowley <drowley@postgresql.org>
Sun, 7 Apr 2024 23:06:31 +0000 (11:06 +1200)
committerDavid Rowley <drowley@postgresql.org>
Sun, 7 Apr 2024 23:06:31 +0000 (11:06 +1200)
commit705ec0565371033082e7b1c278afcb42aa5a7421
tree5be068a9d07b2df403ae138e32e2123b5340ca92
parentbeabea6c2063e583628c59d03102dba996975b4a
Fix incorrect KeeperBlock macro in bump.c

The macro was missing a MAXALIGN around the sizeof(BumpContext) which
would cause problems detecting the keeper block on 32-bit systems that
have a MAXALIGN value of 8.

Thank you to Andres Freund, Tomas Vondra and Tom Lane for investigating
and testing.

Reported-by: Melanie Plageman, Tomas Vondra
Discussion: https://postgr.es/m/CAAKRu_Y6dZjiJEZghgNZp0Gjar1JVq-CH7XGDqExDVHnPgDjuw@mail.gmail.com
Discussion: https://postgr.es/m/a4a10b89-6ba8-4abd-b449-019aafff04fc@enterprisedb.com
src/backend/utils/mmgr/bump.c