From 9a8aeb23a19ee6833480d4c12719d9fd26ad8571 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 2 Aug 1999 05:25:27 +0000 Subject: Another 'mega-commit' of back-patches ... - integrating the #include file cleanup that Bruce recently did - got the CPU change to adt/Makefile - changing DOUBLEALIGN -> MAXALIGN --- src/backend/access/common/indextuple.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/backend/access/common/indextuple.c') diff --git a/src/backend/access/common/indextuple.c b/src/backend/access/common/indextuple.c index 5c779bcf6c7..e42bfb0a0e4 100644 --- a/src/backend/access/common/indextuple.c +++ b/src/backend/access/common/indextuple.c @@ -8,24 +8,17 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.33 1999/02/13 23:14:11 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.33.2.1 1999/08/02 05:24:25 scrappy Exp $ * *------------------------------------------------------------------------- */ -#include +#include "postgres.h" -#include -#include -#include -#include -#include +#include "access/heapam.h" +#include "access/itup.h" +#include "catalog/pg_type.h" -#ifndef HAVE_MEMMOVE -#include -#else -#include -#endif /* ---------------------------------------------------------------- * index_ tuple interface routines @@ -67,7 +60,7 @@ index_formtuple(TupleDesc tupleDescriptor, hoff = IndexInfoFindDataOffset(infomask); size = hoff + ComputeDataSize(tupleDescriptor, value, null); - size = DOUBLEALIGN(size); /* be conservative */ + size = MAXALIGN(size); /* be conservative */ tp = (char *) palloc(size); tuple = (IndexTuple) tp; -- cgit v1.2.3