From a0b4af3c85b59854d6fe8ae465a019adf44a0157 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sun, 4 Jul 1999 05:44:56 +0000
Subject: [PATCH] More alignment

---
 src/include/access/htup.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/include/access/htup.h b/src/include/access/htup.h
index 8eda1020d35..3097a9d914a 100644
--- a/src/include/access/htup.h
+++ b/src/include/access/htup.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: htup.h,v 1.19 1999/07/04 04:56:01 momjian Exp $
+ * $Id: htup.h,v 1.20 1999/07/04 05:44:56 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -53,12 +53,13 @@ typedef struct HeapTupleHeaderData
 
 typedef HeapTupleHeaderData *HeapTupleHeader;
 
-#define MinTupleSize	(DOUBLEALIGN(sizeof (PageHeaderData) + \
-						 sizeof(HeapTupleHeaderData) + sizeof(int4)))
+#define MinTupleSize	(MAXALIGN(sizeof (PageHeaderData) + \
+						 MAXALIGN(sizeof(HeapTupleHeaderData)) + \
+						 MAXALIGN(sizeof(char)))
 
 #define MaxTupleSize	(BLCKSZ - MinTupleSize)
 
-#define MaxAttrSize		(MaxTupleSize - sizeof(HeapTupleHeaderData))
+#define MaxAttrSize		(MaxTupleSize - MAXALIGN(sizeof(HeapTupleHeaderData)))
 
 #define SelfItemPointerAttributeNumber			(-1)
 #define ObjectIdAttributeNumber					(-2)
-- 
GitLab