From 92687ef164d0e3a0113b56e736c38a9389d3a1a6 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Sat, 6 Dec 2008 17:31:37 +0000 Subject: [PATCH] MAPSIZE macro needs to use MAXALIGN(SizeOfPageHeaderData) instead of SizeOfPageHeaderData, like PageGetContents does. Per report by Pavan Deolasee. --- src/backend/access/heap/visibilitymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/heap/visibilitymap.c b/src/backend/access/heap/visibilitymap.c index 8d0befc746..f8aa4bd4e8 100644 --- a/src/backend/access/heap/visibilitymap.c +++ b/src/backend/access/heap/visibilitymap.c @@ -101,7 +101,7 @@ * extra headers, so the whole page minus except for the standard page header * is used for the bitmap. */ -#define MAPSIZE (BLCKSZ - SizeOfPageHeaderData) +#define MAPSIZE (BLCKSZ - MAXALIGN(SizeOfPageHeaderData)) /* Number of bits allocated for each heap block. */ #define BITS_PER_HEAPBLOCK 1 -- 2.39.5