From 703a9e47c45bce23c90dc95bacb4aa1cd255fcab Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 13 Nov 2026 11:58:18 +0100 Subject: [PATCH 5/5] XXX ATTRIBUTE_FIXED_PART_SIZE fix As of commit 6a3da13d376, FormData_pg_attribute has 4 bytes of trailing padding, and so sizeof(FormData_pg_attribute) is different from ATTRIBUTE_FIXED_PART_SIZE. The compiler flags it in this one place, but this probably could use a larger cleanup. Discussion: https://www.postgresql.org/message-id/flat/7c7d41c1-fd5d-f9a5-afd5-f00168d91fe2%402ndquadrant.com --- src/backend/bootstrap/bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 00786d8c0fa..8b926b06401 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -1114,7 +1114,7 @@ static Form_pg_attribute AllocateAttribute(void) { return (Form_pg_attribute) - MemoryContextAllocZero(TopMemoryContext, ATTRIBUTE_FIXED_PART_SIZE); + MemoryContextAllocZero(TopMemoryContext, sizeof(FormData_pg_attribute)); } /* -- 2.56.0