# 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 $
#
#-------------------------------------------------------------------------
INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
- -I../include \
-I../../include
CFLAGS+=$(INCLUDE_OPT)
*
*
* 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"
*
*
* 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"
#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;
*
*
* 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"
#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"
*
*
* 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"
#include "utils/mcxt.h"
-#include <stdio.h>
-#include "catalog/pg_index.h"
-#include "access/itup.h"
#include "executor/executor.h"
#include "executor/execdefs.h"
#include "catalog/pg_type.h"
-#include "utils/geo-decls.h"
#include "utils/builtins.h"
/* ----------------
*
*
* 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>
#include <catalog/catname.h>
+#include <catalog/pg_user.h>
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
#define VALUE(c) ((c) - '0')
*
*
* 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"
*
*
* 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"
*
*
* 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);
*
*
* 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"
*
*
* 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
*
*-------------------------------------------------------------------------
*/
-#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() */
*
*
* 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"
*
*
* 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"
*
*
* 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"
#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"
#ifndef NO_SECURITY
#include "utils/acl.h"
-#include "utils/syscache.h"
#endif /* !NO_SECURITY */
/*
*
*
* 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 */
*
*
* 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"