From f8c4d7db6033802ab682f95d5548a9ea6c33cec6 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 12 May 2008 00:00:54 +0000 Subject: Restructure some header files a bit, in particular heapam.h, by removing some unnecessary #include lines in it. Also, move some tuple routine prototypes and macros to htup.h, which allows removal of heapam.h inclusion from some .c files. For this to work, a new header file access/sysattr.h needed to be created, initially containing attribute numbers of system columns, for pg_dump usage. While at it, make contrib ltree, intarray and hstore header files more consistent with our header style. --- contrib/pageinspect/btreefuncs.c | 1 + contrib/pageinspect/rawpage.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'contrib/pageinspect') diff --git a/contrib/pageinspect/btreefuncs.c b/contrib/pageinspect/btreefuncs.c index ce8b97e46ba..3fbfb9c12b8 100644 --- a/contrib/pageinspect/btreefuncs.c +++ b/contrib/pageinspect/btreefuncs.c @@ -30,6 +30,7 @@ #include "catalog/pg_type.h" #include "funcapi.h" #include "miscadmin.h" +#include "storage/bufmgr.h" #include "utils/builtins.h" diff --git a/contrib/pageinspect/rawpage.c b/contrib/pageinspect/rawpage.c index 319886d6e6d..0bc6bdc0174 100644 --- a/contrib/pageinspect/rawpage.c +++ b/contrib/pageinspect/rawpage.c @@ -8,21 +8,22 @@ * Copyright (c) 2007-2008, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/contrib/pageinspect/rawpage.c,v 1.5 2008/03/25 22:42:41 tgl Exp $ + * $PostgreSQL: pgsql/contrib/pageinspect/rawpage.c,v 1.6 2008/05/12 00:00:43 alvherre Exp $ * *------------------------------------------------------------------------- */ #include "postgres.h" -#include "fmgr.h" -#include "funcapi.h" #include "access/heapam.h" #include "access/transam.h" #include "catalog/namespace.h" #include "catalog/pg_type.h" -#include "utils/builtins.h" +#include "fmgr.h" +#include "funcapi.h" #include "miscadmin.h" +#include "storage/bufmgr.h" +#include "utils/builtins.h" PG_MODULE_MAGIC; -- cgit v1.2.3