|
6 | 6 | * |
7 | 7 | * Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - * $Id: htup.h,v 1.17 1999/07/0300:32:55 momjian Exp $ |
| 9 | + * $Id: htup.h,v 1.18 1999/07/0301:57:53 momjian Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
|
15 | 15 |
|
16 | 16 | #include<storage/bufpage.h> |
17 | 17 | #include<storage/itemptr.h> |
| 18 | +#include<utils/memutils.h> |
18 | 19 |
|
19 | 20 | #defineMinHeapTupleBitmapSize32/* 8 * 4 */ |
20 | 21 |
|
@@ -52,8 +53,8 @@ typedef struct HeapTupleHeaderData |
52 | 53 |
|
53 | 54 | typedefHeapTupleHeaderData*HeapTupleHeader; |
54 | 55 |
|
55 | | -#defineMinTupleSize(sizeof (PageHeaderData) + \ |
56 | | - sizeof(HeapTupleHeaderData) + sizeof(int4)) |
| 56 | +#defineMinTupleSize(DOUBLEALIGN(sizeof (PageHeaderData) + \ |
| 57 | + sizeof(HeapTupleHeaderData) + sizeof(int4))) |
57 | 58 |
|
58 | 59 | #defineMaxTupleSize(BLCKSZ/2 - MinTupleSize) |
59 | 60 |
|
|