From 1cfd9e88349fc259d17914ccfd4eaf7bb7f7d141 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 7 Jan 2009 13:44:37 +0000 Subject: Fix executor/spi.h to follow our usual conventions for include files, ie, not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday. This should be noted as a source code change in the 8.4 release notes, since it's likely to require changes in add-on modules. --- src/include/executor/spi.h | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'src/include/executor') diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h index 7966fe3dc1..c28730c425 100644 --- a/src/include/executor/spi.h +++ b/src/include/executor/spi.h @@ -6,44 +6,17 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.68 2009/01/01 17:23:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.69 2009/01/07 13:44:37 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef SPI_H #define SPI_H -/* - * This file may be used by client modules that haven't already - * included postgres.h - */ -#include "postgres.h" - -/* - * Most of these are not needed by this file, but may be used by - * user-written code that uses SPI - */ -#include "access/heapam.h" -#include "access/xact.h" -#include "catalog/pg_language.h" -#include "catalog/pg_proc.h" -#include "catalog/pg_type.h" -#include "executor/execdefs.h" -#include "executor/executor.h" -#include "nodes/execnodes.h" -#include "nodes/params.h" #include "nodes/parsenodes.h" -#include "nodes/plannodes.h" -#include "nodes/primnodes.h" -#include "nodes/relation.h" -#include "tcop/dest.h" -#include "tcop/pquery.h" -#include "tcop/tcopprot.h" -#include "tcop/utility.h" -#include "utils/builtins.h" -#include "utils/datum.h" #include "utils/portal.h" -#include "utils/syscache.h" +#include "utils/relcache.h" +#include "utils/snapshot.h" typedef struct SPITupleTable -- cgit v1.2.1