]> granicus.if.org Git - postgresql/commitdiff
Another first pass at cleaning up the #includes
authorMarc G. Fournier <scrappy@hub.org>
Sun, 3 Nov 1996 23:57:43 +0000 (23:57 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 3 Nov 1996 23:57:43 +0000 (23:57 +0000)
16 files changed:
src/backend/commands/Makefile
src/backend/commands/_deadcode/version.c
src/backend/commands/async.c
src/backend/commands/cluster.c
src/backend/commands/command.c
src/backend/commands/copy.c
src/backend/commands/creatinh.c
src/backend/commands/defind.c
src/backend/commands/define.c
src/backend/commands/explain.c
src/backend/commands/purge.c
src/backend/commands/recipe.c
src/backend/commands/remove.c
src/backend/commands/rename.c
src/backend/commands/vacuum.c
src/backend/commands/view.c

index ccf0f8451f1539ccae021bc1bbd941be135d86dc..2886af835deec45c1ed0cc46d999e57d71131c64 100644 (file)
@@ -4,7 +4,7 @@
 #    Makefile for commands
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.1 1996/10/27 09:47:14 bryanh Exp $
+#    $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.2 1996/11/03 23:57:17 scrappy Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -13,7 +13,6 @@ include ../../Makefile.global
 
 INCLUDE_OPT = -I.. \
               -I../port/$(PORTNAME) \
-              -I../include \
               -I../../include
 
 CFLAGS+=$(INCLUDE_OPT)
index 6dd311cee7efdade1db679739ab86aee45bb7a7d..9d178e877c74675a51bc6ffb140e19ed29fd6714 100644 (file)
@@ -10,7 +10,7 @@
  *  
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.1.1.1 1996/07/09 06:21:23 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.2 1996/11/03 23:57:42 scrappy Exp $
  *
  * NOTES
  *    At the point the version is defined, 2 physical relations are created
  *-------------------------------------------------------------------------
  */
 #include <stdio.h>
+#include <string.h>
 
 #include "postgres.h"
 
-#include "utils/rel.h"
 #include "access/heapam.h"
 #include "utils/builtins.h"
-#include "utils/elog.h"
-#include "nodes/pg_list.h"
 #include "commands/version.h"
 #include "access/xact.h"               /* for GetCurrentXactStartTime */
 #include "tcop/tcopprot.h"
index 351c7196a6191c88c7ab9e9227265f6514d15b3d..cb02d50104772d28e5e512c782efb421ad47216a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.4 1996/10/21 09:37:20 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.5 1996/11/03 23:57:19 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "postgres.h"
 
-#include "catalog/pg_attribute.h"
-#include "access/attnum.h" 
-#include "nodes/pg_list.h"
-#include "access/tupdesc.h"  
-#include "storage/fd.h"
-#include "catalog/pg_am.h"
-#include "catalog/pg_class.h"
-#include "nodes/nodes.h"
-#include "rewrite/prs2lock.h"
-#include "access/skey.h"
-#include "access/strat.h"
-#include "utils/rel.h"
-
-#include "storage/block.h"
-#include "storage/off.h"
-#include "storage/itemptr.h"
-#include <time.h>
-#include "utils/nabstime.h"
-#include "access/htup.h" 
-
-#include "utils/tqual.h"
-#include "storage/buf.h"  
+#include "utils/syscache.h"
 #include "access/relscan.h"
-
 #include "access/xact.h"
-
 #include "lib/dllist.h"
-
 #include "utils/palloc.h"
 
 #include "tcop/dest.h"
@@ -98,8 +74,6 @@
 
 #include "access/heapam.h" 
 
-#include <stdio.h>
-#include "storage/ipc.h"
 #include "storage/bufmgr.h"
 
 #include "nodes/memnodes.h"
 #include <errno.h>
 
 #include <netinet/in.h>
-#include "libpq/pqcomm.h"
 #include "libpq/libpq.h"
 
-#include "utils/syscache.h"
 
 static int notifyFrontEndPending = 0;
 static int notifyIssued = 0;
index 40625f0e55c83a8015b8ce7f20d8f8ae9af92c86..17369934606829d90cbd066869ab6eab63f4b3e9 100644 (file)
@@ -14,7 +14,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.6 1996/09/26 16:29:05 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.7 1996/11/03 23:57:20 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "postgres.h"
 
-#include "nodes/pg_list.h"
-
-#include "access/attnum.h"
 #include "access/heapam.h"
 #include "access/genam.h"
 #include "access/htup.h"
-#include "access/itup.h"
-#include "access/relscan.h"
 #include "access/skey.h"
 #include "access/xact.h"
-#include "utils/tqual.h"
 
 #include "catalog/catname.h"
 #include "utils/syscache.h"
@@ -45,9 +39,7 @@
 #include "commands/cluster.h"
 #include "commands/rename.h"
 
-#include "storage/buf.h"
 #include "storage/bufmgr.h"
-#include "storage/itemptr.h"
 
 #include "miscadmin.h"
 #include "tcop/dest.h"
 
 #include "utils/builtins.h"
 #include "utils/excid.h"
-#include "utils/elog.h"
 #include "utils/mcxt.h"
 #include "utils/palloc.h"
-#include "utils/rel.h"
 
-#include "catalog/pg_attribute.h"
 #include "catalog/pg_proc.h"
 #include "catalog/pg_class.h"
 
index ac1900d3e3e702572636e991c94c14e9353dfa95..13c56d888c5389d2014833bc11c57e020d2dd26e 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.3 1996/10/21 09:37:23 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.4 1996/11/03 23:57:21 scrappy Exp $
  *
  * NOTES
  *    The PortalExecutorHeapMemory crap needs to be eliminated
  */
 #include "postgres.h"
 
-#include "catalog/pg_attribute.h"
-#include "access/attnum.h"  
-#include "nodes/pg_list.h"
-#include "access/tupdesc.h"
-#include "storage/fd.h"
-#include "catalog/pg_am.h"
-#include "catalog/pg_class.h"
-#include "nodes/nodes.h"
-#include "rewrite/prs2lock.h"
-#include "access/skey.h"
-#include "access/strat.h"
-#include "utils/rel.h"  
-
-#include "storage/block.h"
-#include "storage/off.h"
-#include "storage/itemptr.h"
-#include <time.h>
-#include "utils/nabstime.h"
-#include "access/htup.h"
-
-#include "utils/tqual.h"
-#include "storage/buf.h"  
 #include "access/relscan.h"
 
 #include "nodes/memnodes.h"
-#include "nodes/primnodes.h"
 #include "nodes/parsenodes.h"
 #include "nodes/params.h"
 #include "access/sdir.h"
@@ -64,9 +41,6 @@
 
 #include "utils/mcxt.h"
 
-#include <stdio.h>
-#include "catalog/pg_index.h"
-#include "access/itup.h" 
 #include "executor/executor.h"
 
 #include "executor/execdefs.h"
@@ -92,7 +66,6 @@
 
 #include "catalog/pg_type.h"
 
-#include "utils/geo-decls.h"
 #include "utils/builtins.h"
 
 /* ----------------
index 601cb82fbdc823261f6f3df96d5f5c89fe7cd060..ca05430e0190d3eaa566ea4308433d6abc0457ff 100644 (file)
@@ -6,40 +6,15 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.11 1996/11/02 02:01:47 bryanh Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.12 1996/11/03 23:57:22 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include <postgres.h>
 
-#include <catalog/pg_attribute.h>
-#include <access/attnum.h>   
-#include <nodes/pg_list.h>
-#include <access/tupdesc.h>  
-#include <storage/fd.h>
-#include <catalog/pg_am.h>
-#include <catalog/pg_class.h>
-#include <nodes/nodes.h>
-#include <rewrite/prs2lock.h>
-#include <access/skey.h>
-#include <access/strat.h>
-#include <utils/rel.h>
-#include <storage/block.h>
-#include <storage/off.h>
-#include <storage/itemptr.h>
-#include <time.h>
-#include <utils/nabstime.h>
-#include <access/htup.h>
-
-#include <utils/tqual.h>
-#include <storage/buf.h> 
-#include <access/relscan.h>
 #include <access/heapam.h>
 
-#include <access/itup.h> 
-
 #include <stdio.h>
 
 #include <tcop/dest.h>
 
 #include <miscadmin.h>
 
-#include <utils/geo-decls.h>
 #include <utils/builtins.h>
 
 #include <sys/stat.h>
 
-#include <access/funcindex.h>
-
 #include <catalog/pg_index.h>
 
 #include <utils/syscache.h>
 
 #include <nodes/params.h>
-#include <access/sdir.h> 
 #include <executor/hashjoin.h>
 #include <nodes/primnodes.h>  
 #include <nodes/memnodes.h>
 
 #include <utils/memutils.h>
 
-#include <nodes/plannodes.h>
-#include <nodes/parsenodes.h>
-#include <executor/execdesc.h>
 #include <executor/executor.h>
 
-#include <storage/ipc.h>
-#include <storage/bufmgr.h>
 #include <access/transam.h>
 
 #include <catalog/index.h>
@@ -88,6 +54,7 @@
 
 #include <catalog/catname.h>
 
+#include <catalog/pg_user.h>
 
 #define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
 #define VALUE(c) ((c) - '0')
index f7573efb6545a60c78a0e08fce5771ab66823f1f..c8242ba036af1b615e22cf5a7fde93346fb0cdb9 100644 (file)
@@ -7,33 +7,13 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.2 1996/10/21 09:37:21 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.3 1996/11/03 23:57:25 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
-#include "catalog/pg_attribute.h"
-#include "access/attnum.h" 
-#include "nodes/pg_list.h"
-#include "access/tupdesc.h"  
-#include "storage/fd.h" 
-#include "catalog/pg_am.h"
-#include "catalog/pg_class.h"
-#include "nodes/nodes.h" 
-#include "rewrite/prs2lock.h" 
-#include "access/skey.h"
-#include "access/strat.h"  
 #include "utils/rel.h"
-
-#include "nodes/primnodes.h"
-#include <time.h>
-#include "utils/nabstime.h"
-#include "storage/block.h"
-#include "storage/off.h"
-#include "storage/itemptr.h"
-#include "access/htup.h"
-#include "utils/tqual.h"
 #include "nodes/parsenodes.h"
 
 #include "catalog/heap.h"
 
 #include "access/xact.h"
 
-#include "access/htup.h"
-#include "utils/tqual.h"
-#include "storage/buf.h"
-#include "access/relscan.h"
 #include "access/heapam.h"
 
 #include "utils/syscache.h"
index fb92db6e67601408a99e9c390321ef4c549d73db..131197a37ef41e074d13960cb07b312534ac8f26 100644 (file)
@@ -7,28 +7,26 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.5 1996/10/23 07:39:57 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.6 1996/11/03 23:57:27 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
+#include <string.h>
+
 #include "postgres.h"
 
 #include "access/attnum.h"
 #include "access/genam.h"
 #include "access/heapam.h"
-#include "access/htup.h"
-#include "access/funcindex.h"
 #include "utils/builtins.h"
 #include "utils/syscache.h"
 #include "catalog/index.h"
 #include "catalog/pg_index.h"
 #include "catalog/pg_proc.h"
 #include "catalog/pg_opclass.h"
-#include "nodes/pg_list.h"
 #include "nodes/plannodes.h"
 #include "nodes/primnodes.h"
 #include "nodes/relation.h"
-#include "utils/elog.h"
 #include "utils/palloc.h"
 #include "utils/relcache.h"
 #include "utils/lsyscache.h"
index 74e32625b660fa8543746e0557b38869d590d738..f0bf15e0275a6b239682fe59cabcff5f7b74f5b0 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.4 1996/11/02 02:01:48 bryanh Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5 1996/11/03 23:57:30 scrappy Exp $
  *
  * DESCRIPTION
  *    The "DefineFoo" routines take the parse tree and pick out the
 #include <postgres.h>
 
 #include <access/heapam.h>
-#include <utils/tqual.h>
 #include <catalog/catname.h>
 #include <catalog/pg_aggregate.h>
 #include <catalog/pg_operator.h>
 #include <catalog/pg_proc.h>
 #include <catalog/pg_type.h>
 #include <utils/syscache.h>
-#include <nodes/pg_list.h>
 #include <nodes/parsenodes.h>
 #include <fmgr.h>               /* for fmgr */
 
 #include <utils/builtins.h>     /* prototype for textin() */
 
-#include <utils/elog.h>
 #include <utils/palloc.h>
 #include <commands/defrem.h>
 #include <optimizer/xfunc.h>
 #include <tcop/dest.h>
 
+#include "catalog/pg_user.h"
+
 static char *defGetString(DefElem *def);
 static int  defGetTypeLength(DefElem *def);
 
index 6116f4b46b242fc7d8e8bec35e18155697559220..d72b40033a6ae3bc643d5e836e5d1aa985e0082e 100644 (file)
@@ -7,18 +7,18 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.2 1996/10/23 07:40:08 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.3 1996/11/03 23:57:32 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <stdio.h>
+#include <string.h>
 
 #include "postgres.h"
 #include "parser/catalog_utils.h"
 #include "parser/parse_query.h"            /* for MakeTimeRange() */
 #include "nodes/plannodes.h"
 #include "tcop/tcopprot.h"
-#include "utils/elog.h"
 #include "utils/palloc.h"
 #include "lib/stringinfo.h"
 #include "commands/explain.h"
index b8b8317ab96d231cea1275ef613fb92a7b5b28cc..7b29dbc852200198925f2220e14d1394ced08889 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.1.1.1 1996/07/09 06:21:21 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.2 1996/11/03 23:57:35 scrappy Exp $
  *
  * Note:
  *     XXX There are many instances of int32 instead of ...Time.  These
@@ -15,7 +15,7 @@
  *
  *-------------------------------------------------------------------------
  */
-#include "c.h"
+#include "postgres.h"
 
 #include "access/heapam.h"
 #include "access/xact.h"
 #include "catalog/catname.h"
 #include "catalog/indexing.h"
 #include "fmgr.h"
-#include "utils/elog.h"
 #include "utils/palloc.h"
-#include "utils/nabstime.h"
 
-#include "catalog/pg_class.h"
 #include "commands/purge.h"
 #include "utils/builtins.h"    /* for isreltime() */
 
index 0e14edfb78d8411a62482de9842320e1a7d946fc..4e679d170934ec2a21e757d7e53e5a46fd45c73a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.3 1996/10/30 02:01:45 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.4 1996/11/03 23:57:36 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "nodes/parsenodes.h"
 #include "nodes/plannodes.h"
 #include "nodes/execnodes.h"
-#include "nodes/pg_list.h"
 #include "nodes/makefuncs.h"
 #include "catalog/pg_type.h"
 #include "commands/recipe.h"
 #include "libpq/libpq-be.h"
 #include "utils/builtins.h"
-#include "utils/elog.h"
-#include "utils/geo-decls.h"
 #include "utils/relcache.h" /* for RelationNameGetRelation*/
 #include "parser/parse_query.h"
 #include "rewrite/rewriteHandler.h"
index 4f34b97f2400af56d6a81a0989b07720fae64cd9..c9e765501a0cd4050dbe6e9023847d536d65e13e 100644 (file)
@@ -7,31 +7,25 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.3 1996/10/23 07:40:09 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.4 1996/11/03 23:57:38 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <string.h>
-#include "c.h"
 
-#include "access/attnum.h"
+#include "postgres.h"
+
 #include "access/heapam.h"
-#include "access/htup.h"
-#include "access/skey.h"
 #include "utils/builtins.h"
 #include "utils/tqual.h"       /* for NowTimeQual */
 #include "catalog/catname.h"
 #include "commands/defrem.h"
-#include "utils/elog.h"
 
 #include "miscadmin.h"
 
 #include "catalog/pg_aggregate.h"
 #include "catalog/pg_language.h"
 #include "catalog/pg_operator.h"
-#include "catalog/pg_proc.h"
-#include "catalog/pg_type.h"
-#include "utils/syscache.h"
 #include "parser/catalog_utils.h"
 #include "storage/bufmgr.h"
 #include "fmgr.h"
index 83dc8944eaceb560e568336bfb59427e053bc074..22078181ef0b2fc0e5bc47e87a9a68db2a61663c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.1.1.1 1996/07/09 06:21:22 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.2 1996/11/03 23:57:39 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "postgres.h"
 
-#include "nodes/pg_list.h"
-#include "access/attnum.h"
 #include "access/heapam.h"
-#include "access/htup.h"
 #include "access/relscan.h"
-#include "access/skey.h"
 #include "utils/builtins.h"
 #include "utils/tqual.h"
 
@@ -33,7 +29,6 @@
 
 #include "executor/execdefs.h" /* for EXEC_{FOR,BACK,FDEBUG,BDEBUG} */
 
-#include "storage/buf.h"
 #include "storage/itemptr.h"
 
 #include "miscadmin.h"
 #include "commands/command.h"
 
 #include "utils/excid.h"
-#include "utils/elog.h"
 #include "utils/mcxt.h"
 #include "utils/palloc.h"
-#include "utils/rel.h"
 
 #include "catalog/pg_attribute.h"
 #include "catalog/pg_proc.h"
@@ -56,7 +49,6 @@
 
 #ifndef NO_SECURITY
 #include "utils/acl.h"
-#include "utils/syscache.h"
 #endif /* !NO_SECURITY */
 
 /*
index e46a5f9ec41a3ef2ebdb910050edd5d8678915c5..b322f855255cb1c1d1581395285dc4b6cce813a2 100644 (file)
@@ -7,11 +7,12 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.5 1996/10/23 07:40:10 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.6 1996/11/03 23:57:40 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <sys/file.h>
+#include <string.h>
 
 #include "postgres.h"
 #include "utils/portal.h"
 #include "storage/bufmgr.h"
 #include "access/transam.h"
 #include "utils/tqual.h"
-#include "access/htup.h"
 
 #include "catalog/pg_index.h"
 #include "catalog/catname.h"
 #include "catalog/pg_class.h"
 #include "catalog/pg_proc.h"
 
-#include "storage/fd.h"                /* for O_ */
-#include "storage/itemid.h"
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
 #include "storage/smgr.h"
 #include "storage/lmgr.h"
 
-#include "utils/elog.h"
 #include "utils/mcxt.h"
 #include "utils/palloc.h"
 
 #include "commands/vacuum.h"
 
+#include "storage/bufpage.h"
+
 #ifdef NEED_RUSAGE
 #include "rusagestub.h"
 #else /* NEED_RUSAGE */
index 26c1db88840e88fd986d9b086265c49c41c3900a..c5f0a7fade18c8ba725933d08912977dadc8a44b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.2 1996/10/30 02:01:47 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.3 1996/11/03 23:57:43 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "access/heapam.h"
 #include "access/xact.h"
 #include "utils/builtins.h"
-#include "utils/syscache.h"
-#include "utils/elog.h"
 #include "utils/palloc.h"
 #include "nodes/relation.h"
-#include "nodes/primnodes.h"
 #include "nodes/parsenodes.h"
 #include "parser/catalog_utils.h"
 #include "parser/parse_query.h"