From f39fc9a81e4a04097255eea89bdaa4d4e5093e33 Mon Sep 17 00:00:00 2001
From: David Geier <geidav.pg@gmail.com>
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.51.0

