Fix incorrect KeeperBlock macro in bump.c

David Rowley <drowley@postgresql.org>

Commit: 705ec0565371033082e7b1c278afcb42aa5a7421
Author: David Rowley <drowley@postgresql.org>
Date: 2024-04-07T23:06:31Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/utils/mmgr/bump.c modified +3 −2

Discussion

Cited messages not in the archive: CAAKRu_Y6dZjiJEZghgNZp0Gjar1JVq-CH7XGDqExDVHnPgDjuw@mail.gmail.com