From 8adc0129423add1cc44ee02aaacb271a7a541096 Mon Sep 17 00:00:00 2001 From: David Geier Date: Thu, 3 Sep 2026 15:52:57 +0200 Subject: [PATCH v1 8/8] Add static assert for size --- src/include/utils/rel_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/utils/rel_internal.h b/src/include/utils/rel_internal.h index a9079e72be9..7f11a018980 100644 --- a/src/include/utils/rel_internal.h +++ b/src/include/utils/rel_internal.h @@ -305,4 +305,7 @@ typedef struct RelationData Oid rd_toastoid; /* Real TOAST table's OID, or InvalidOid */ } RelationData; +StaticAssertDecl(sizeof(RelationData) <= 256, + "size of RelationData exceeds 256 bytes"); + #endif /* REL_INTERNAL_H */ -- 2.55.0