diff options
author | Marc G. Fournier <scrappy@hub.org> | 1999-08-02 05:57:07 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1999-08-02 05:57:07 +0000 |
commit | 10ace1fac8d9f2aa887a1095340e218430928fce (patch) | |
tree | 9d6bb091bfbf0b16bb7ad29e5c042de12ee4b678 /src/backend/access/heap/heapam.c | |
parent | 9a8aeb23a19ee6833480d4c12719d9fd26ad8571 (diff) |
Another mass of them... just #include file changes and/or DOUBLEALIGN->MAXALIGN
Diffstat (limited to 'src/backend/access/heap/heapam.c')
-rw-r--r-- | src/backend/access/heap/heapam.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index a0d03f6927c..66fc131dbda 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.46 1999/07/09 04:51:27 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.46.2.1 1999/08/02 05:56:36 scrappy Exp $ * * * INTERFACE ROUTINES @@ -73,27 +73,18 @@ *------------------------------------------------------------------------- */ -#include <postgres.h> - -#include <storage/bufpage.h> -#include <access/heapam.h> -#include <miscadmin.h> -#include <utils/relcache.h> -#include <access/valid.h> -#include <access/hio.h> -#include <storage/lmgr.h> -#include <storage/smgr.h> -#include <catalog/catalog.h> -#include <access/transam.h> -#include <access/xact.h> -#include <utils/inval.h> -#include <utils/memutils.h> - -#ifndef HAVE_MEMMOVE -#include <regex/utils.h> -#else -#include <string.h> -#endif +#include "postgres.h" + +#include "access/heapam.h" +#include "access/hio.h" +#include "access/valid.h" +#include "catalog/catalog.h" +#include "miscadmin.h" +#include "storage/smgr.h" +#include "utils/builtins.h" +#include "utils/inval.h" +#include "utils/relcache.h" + /* ---------------------------------------------------------------- * heap support routines @@ -1289,7 +1280,7 @@ l2: HEAP_XMAX_INVALID | HEAP_MARKED_FOR_UPDATE); /* insert new item */ - if ((unsigned) DOUBLEALIGN(newtup->t_len) <= PageGetFreeSpace((Page) dp)) + if ((unsigned) MAXALIGN(newtup->t_len) <= PageGetFreeSpace((Page) dp)) RelationPutHeapTuple(relation, buffer, newtup); else { |