mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Clean it up so that it compiles
This commit is contained in:
parent
33a8df7edd
commit
7385619f14
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.2 1996/11/03 23:57:42 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.3 1996/11/06 08:21:42 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* At the point the version is defined, 2 physical relations are created
|
* At the point the version is defined, 2 physical relations are created
|
||||||
@ -24,13 +24,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
|
|
||||||
#include "access/heapam.h"
|
#include <access/heapam.h>
|
||||||
#include "utils/builtins.h"
|
#include <utils/builtins.h>
|
||||||
#include "commands/version.h"
|
#include <commands/version.h>
|
||||||
#include "access/xact.h" /* for GetCurrentXactStartTime */
|
#include <access/xact.h> /* for GetCurrentXactStartTime */
|
||||||
#include "tcop/tcopprot.h"
|
#include <tcop/tcopprot.h>
|
||||||
|
|
||||||
#define MAX_QUERY_LEN 1024
|
#define MAX_QUERY_LEN 1024
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.5 1996/11/03 23:57:19 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.6 1996/11/06 08:21:26 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -58,36 +58,28 @@
|
|||||||
* #4,#5 are changing soon with pending rewrite of portal/protocol.
|
* #4,#5 are changing soon with pending rewrite of portal/protocol.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.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 "catalog/pg_proc.h"
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
#include "catalog/pg_listener.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
|
|
||||||
#include "storage/bufmgr.h"
|
|
||||||
|
|
||||||
#include "nodes/memnodes.h"
|
|
||||||
#include "utils/mcxt.h"
|
|
||||||
#include "commands/async.h"
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "libpq/libpq.h"
|
|
||||||
|
|
||||||
|
#include <postgres.h>
|
||||||
|
|
||||||
|
#include <utils/syscache.h>
|
||||||
|
#include <access/relscan.h>
|
||||||
|
#include <access/xact.h>
|
||||||
|
#include <lib/dllist.h>
|
||||||
|
#include <tcop/dest.h>
|
||||||
|
#include <catalog/pg_proc.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <catalog/pg_listener.h>
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <storage/bufmgr.h>
|
||||||
|
#include <nodes/memnodes.h>
|
||||||
|
#include <utils/mcxt.h>
|
||||||
|
#include <commands/async.h>
|
||||||
|
#include <libpq/libpq.h>
|
||||||
|
|
||||||
static int notifyFrontEndPending = 0;
|
static int notifyFrontEndPending = 0;
|
||||||
static int notifyIssued = 0;
|
static int notifyIssued = 0;
|
||||||
|
@ -14,50 +14,37 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.7 1996/11/03 23:57:20 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.8 1996/11/06 08:21:29 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <postgres.h>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
#include "access/genam.h"
|
|
||||||
#include "access/htup.h"
|
|
||||||
#include "access/skey.h"
|
|
||||||
#include "access/xact.h"
|
|
||||||
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
#include "utils/syscache.h"
|
|
||||||
#include "catalog/index.h"
|
|
||||||
#include "catalog/indexing.h"
|
|
||||||
#include "catalog/pg_type.h"
|
|
||||||
|
|
||||||
#include "commands/copy.h"
|
|
||||||
#include "commands/cluster.h"
|
|
||||||
#include "commands/rename.h"
|
|
||||||
|
|
||||||
#include "storage/bufmgr.h"
|
|
||||||
|
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "tcop/dest.h"
|
|
||||||
#include "commands/command.h"
|
|
||||||
|
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/excid.h"
|
|
||||||
#include "utils/mcxt.h"
|
|
||||||
#include "utils/palloc.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_proc.h"
|
|
||||||
#include "catalog/pg_class.h"
|
|
||||||
|
|
||||||
#include "optimizer/internal.h"
|
|
||||||
|
|
||||||
|
#include <catalog/pg_index.h>
|
||||||
|
#include <catalog/heap.h>
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <access/genam.h>
|
||||||
|
#include <access/xact.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <utils/syscache.h>
|
||||||
|
#include <catalog/index.h>
|
||||||
|
#include <catalog/indexing.h>
|
||||||
|
#include <catalog/pg_type.h>
|
||||||
|
#include <commands/copy.h>
|
||||||
|
#include <commands/cluster.h>
|
||||||
|
#include <commands/rename.h>
|
||||||
|
#include <storage/bufmgr.h>
|
||||||
|
#include <miscadmin.h>
|
||||||
|
#include <tcop/dest.h>
|
||||||
|
#include <commands/command.h>
|
||||||
|
#include <utils/builtins.h>
|
||||||
|
#include <utils/excid.h>
|
||||||
|
#include <utils/mcxt.h>
|
||||||
|
#include <catalog/pg_proc.h>
|
||||||
|
#include <catalog/pg_class.h>
|
||||||
|
#include <optimizer/internal.h>
|
||||||
#ifndef NO_SECURITY
|
#ifndef NO_SECURITY
|
||||||
#include "utils/acl.h"
|
#include <utils/acl.h>
|
||||||
#include "utils/syscache.h"
|
|
||||||
#endif /* !NO_SECURITY */
|
#endif /* !NO_SECURITY */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.4 1996/11/03 23:57:21 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.5 1996/11/06 08:21:30 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* The PortalExecutorHeapMemory crap needs to be eliminated
|
* The PortalExecutorHeapMemory crap needs to be eliminated
|
||||||
@ -20,53 +20,25 @@
|
|||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
|
|
||||||
#include "access/relscan.h"
|
#include <access/relscan.h>
|
||||||
|
#include <utils/portal.h>
|
||||||
#include "nodes/memnodes.h"
|
#include <commands/command.h>
|
||||||
#include "nodes/parsenodes.h"
|
#include <utils/mcxt.h>
|
||||||
#include "nodes/params.h"
|
#include <executor/executor.h>
|
||||||
#include "access/sdir.h"
|
#include <executor/execdefs.h>
|
||||||
#include "executor/hashjoin.h"
|
#include <catalog/indexing.h>
|
||||||
#include "executor/tuptable.h"
|
#include <utils/syscache.h>
|
||||||
#include "access/funcindex.h"
|
#include <catalog/catalog.h>
|
||||||
#include "nodes/execnodes.h"
|
#include <access/heapam.h>
|
||||||
#include "nodes/plannodes.h"
|
#include <utils/array.h>
|
||||||
#include "tcop/dest.h"
|
#include <utils/acl.h>
|
||||||
#include "executor/execdesc.h"
|
#include <optimizer/prep.h>
|
||||||
#include "utils/portal.h"
|
#include <catalog/catname.h>
|
||||||
|
#include <catalog/pg_proc.h>
|
||||||
#include "commands/command.h"
|
#include <catalog/pg_type.h>
|
||||||
|
#include <utils/builtins.h>
|
||||||
#include "utils/mcxt.h"
|
|
||||||
|
|
||||||
#include "executor/executor.h"
|
|
||||||
|
|
||||||
#include "executor/execdefs.h"
|
|
||||||
|
|
||||||
#include "catalog/indexing.h"
|
|
||||||
|
|
||||||
#include "utils/syscache.h"
|
|
||||||
|
|
||||||
#include "catalog/catalog.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
|
|
||||||
#include "utils/array.h"
|
|
||||||
#include "utils/acl.h"
|
|
||||||
|
|
||||||
#include "optimizer/prep.h"
|
|
||||||
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_proc.h"
|
|
||||||
|
|
||||||
#include "utils/palloc.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_type.h"
|
|
||||||
|
|
||||||
#include "utils/builtins.h"
|
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
* PortalExecutorHeapMemory stuff
|
* PortalExecutorHeapMemory stuff
|
||||||
|
@ -6,56 +6,32 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.13 1996/11/06 06:47:09 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.14 1996/11/06 08:21:31 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <postgres.h>
|
#include <postgres.h>
|
||||||
|
|
||||||
#include <access/heapam.h>
|
#include <access/heapam.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include <tcop/dest.h>
|
#include <tcop/dest.h>
|
||||||
|
|
||||||
#include <fmgr.h>
|
#include <fmgr.h>
|
||||||
|
|
||||||
#include <utils/palloc.h>
|
|
||||||
|
|
||||||
#include <miscadmin.h>
|
#include <miscadmin.h>
|
||||||
|
|
||||||
#include <utils/builtins.h>
|
#include <utils/builtins.h>
|
||||||
|
|
||||||
#include <utils/acl.h>
|
#include <utils/acl.h>
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <catalog/pg_index.h>
|
#include <catalog/pg_index.h>
|
||||||
|
|
||||||
#include <utils/syscache.h>
|
#include <utils/syscache.h>
|
||||||
|
|
||||||
#include <nodes/params.h>
|
|
||||||
#include <executor/hashjoin.h>
|
|
||||||
#include <nodes/primnodes.h>
|
|
||||||
#include <nodes/memnodes.h>
|
|
||||||
#include <executor/tuptable.h>
|
|
||||||
#include <nodes/execnodes.h>
|
|
||||||
|
|
||||||
#include <utils/memutils.h>
|
#include <utils/memutils.h>
|
||||||
|
|
||||||
#include <executor/executor.h>
|
#include <executor/executor.h>
|
||||||
|
|
||||||
#include <access/transam.h>
|
#include <access/transam.h>
|
||||||
|
|
||||||
#include <catalog/index.h>
|
#include <catalog/index.h>
|
||||||
|
|
||||||
#include <access/genam.h>
|
#include <access/genam.h>
|
||||||
|
|
||||||
#include <catalog/pg_type.h>
|
#include <catalog/pg_type.h>
|
||||||
|
|
||||||
#include <catalog/catname.h>
|
#include <catalog/catname.h>
|
||||||
|
|
||||||
#include <catalog/pg_user.h>
|
#include <catalog/pg_user.h>
|
||||||
|
|
||||||
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
|
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
|
||||||
|
@ -7,36 +7,25 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.3 1996/11/03 23:57:25 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.4 1996/11/06 08:21:32 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "utils/rel.h"
|
|
||||||
#include "nodes/parsenodes.h"
|
|
||||||
|
|
||||||
#include "catalog/heap.h"
|
|
||||||
|
|
||||||
#include "utils/palloc.h"
|
|
||||||
|
|
||||||
#include "commands/creatinh.h"
|
|
||||||
|
|
||||||
#include "access/xact.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
|
|
||||||
#include "utils/syscache.h"
|
|
||||||
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_type.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_inherits.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "catalog/pg_ipl.h"
|
#include <postgres.h>
|
||||||
|
|
||||||
|
#include <utils/rel.h>
|
||||||
|
#include <nodes/parsenodes.h>
|
||||||
|
#include <catalog/heap.h>
|
||||||
|
#include <commands/creatinh.h>
|
||||||
|
#include <access/xact.h>
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <utils/syscache.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <catalog/pg_type.h>
|
||||||
|
#include <catalog/pg_inherits.h>
|
||||||
|
#include <catalog/pg_ipl.h>
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
* local stuff
|
* local stuff
|
||||||
|
@ -7,37 +7,34 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.7 1996/11/06 06:47:12 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.8 1996/11/06 08:21:33 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
|
|
||||||
#include "access/attnum.h"
|
#include <access/attnum.h>
|
||||||
#include "access/genam.h"
|
#include <access/genam.h>
|
||||||
#include "access/heapam.h"
|
#include <access/heapam.h>
|
||||||
#include "utils/builtins.h"
|
#include <utils/builtins.h>
|
||||||
#include "utils/syscache.h"
|
#include <utils/syscache.h>
|
||||||
#include "catalog/index.h"
|
#include <catalog/index.h>
|
||||||
#include "catalog/pg_index.h"
|
#include <catalog/pg_index.h>
|
||||||
#include "catalog/pg_proc.h"
|
#include <catalog/pg_proc.h>
|
||||||
#include "catalog/pg_opclass.h"
|
#include <catalog/pg_opclass.h>
|
||||||
#include "nodes/plannodes.h"
|
#include <nodes/plannodes.h>
|
||||||
#include "nodes/primnodes.h"
|
#include <nodes/primnodes.h>
|
||||||
#include "nodes/relation.h"
|
#include <nodes/relation.h>
|
||||||
#include "utils/palloc.h"
|
#include <utils/relcache.h>
|
||||||
#include "utils/relcache.h"
|
#include <utils/lsyscache.h>
|
||||||
#include "utils/lsyscache.h"
|
#include <commands/defrem.h>
|
||||||
|
#include <parser/parsetree.h> /* for getrelid() */
|
||||||
#include "commands/defrem.h"
|
#include <optimizer/prep.h>
|
||||||
#include "parser/parsetree.h" /* for getrelid() */
|
#include <optimizer/clauses.h>
|
||||||
|
#include <storage/lmgr.h>
|
||||||
#include "optimizer/prep.h"
|
#include <fmgr.h>
|
||||||
#include "optimizer/clauses.h"
|
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "fmgr.h"
|
|
||||||
|
|
||||||
#define IsFuncIndex(ATTR_LIST) (((IndexElem*)lfirst(ATTR_LIST))->args!=NULL)
|
#define IsFuncIndex(ATTR_LIST) (((IndexElem*)lfirst(ATTR_LIST))->args!=NULL)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5 1996/11/03 23:57:30 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.6 1996/11/06 08:21:34 scrappy Exp $
|
||||||
*
|
*
|
||||||
* DESCRIPTION
|
* DESCRIPTION
|
||||||
* The "DefineFoo" routines take the parse tree and pick out the
|
* The "DefineFoo" routines take the parse tree and pick out the
|
||||||
@ -32,8 +32,10 @@
|
|||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include <postgres.h>
|
#include <postgres.h>
|
||||||
|
|
||||||
@ -44,17 +46,12 @@
|
|||||||
#include <catalog/pg_proc.h>
|
#include <catalog/pg_proc.h>
|
||||||
#include <catalog/pg_type.h>
|
#include <catalog/pg_type.h>
|
||||||
#include <utils/syscache.h>
|
#include <utils/syscache.h>
|
||||||
#include <nodes/parsenodes.h>
|
|
||||||
#include <fmgr.h> /* for fmgr */
|
#include <fmgr.h> /* for fmgr */
|
||||||
|
|
||||||
#include <utils/builtins.h> /* prototype for textin() */
|
#include <utils/builtins.h> /* prototype for textin() */
|
||||||
|
|
||||||
#include <utils/palloc.h>
|
|
||||||
#include <commands/defrem.h>
|
#include <commands/defrem.h>
|
||||||
#include <optimizer/xfunc.h>
|
#include <optimizer/xfunc.h>
|
||||||
#include <tcop/dest.h>
|
#include <tcop/dest.h>
|
||||||
|
#include <catalog/pg_user.h>
|
||||||
#include "catalog/pg_user.h"
|
|
||||||
|
|
||||||
static char *defGetString(DefElem *def);
|
static char *defGetString(DefElem *def);
|
||||||
static int defGetTypeLength(DefElem *def);
|
static int defGetTypeLength(DefElem *def);
|
||||||
|
@ -7,23 +7,23 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.3 1996/11/03 23:57:32 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.4 1996/11/06 08:21:35 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
#include "parser/catalog_utils.h"
|
|
||||||
#include "parser/parse_query.h" /* for MakeTimeRange() */
|
#include <parser/catalog_utils.h>
|
||||||
#include "nodes/plannodes.h"
|
#include <parser/parse_query.h> /* for MakeTimeRange() */
|
||||||
#include "tcop/tcopprot.h"
|
#include <nodes/plannodes.h>
|
||||||
#include "utils/palloc.h"
|
#include <tcop/tcopprot.h>
|
||||||
#include "lib/stringinfo.h"
|
#include <lib/stringinfo.h>
|
||||||
#include "commands/explain.h"
|
#include <commands/explain.h>
|
||||||
#include "optimizer/planner.h"
|
#include <optimizer/planner.h>
|
||||||
#include "access/xact.h"
|
#include <access/xact.h>
|
||||||
|
|
||||||
typedef struct ExplainState {
|
typedef struct ExplainState {
|
||||||
/* options */
|
/* options */
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.2 1996/11/03 23:57:35 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.3 1996/11/06 08:21:36 scrappy Exp $
|
||||||
*
|
*
|
||||||
* Note:
|
* Note:
|
||||||
* XXX There are many instances of int32 instead of ...Time. These
|
* XXX There are many instances of int32 instead of ...Time. These
|
||||||
@ -15,18 +15,16 @@
|
|||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
|
|
||||||
#include "access/heapam.h"
|
#include <access/heapam.h>
|
||||||
#include "access/xact.h"
|
#include <access/xact.h>
|
||||||
#include "utils/tqual.h" /* for NowTimeQual */
|
#include <utils/tqual.h> /* for NowTimeQual */
|
||||||
#include "catalog/catname.h"
|
#include <catalog/catname.h>
|
||||||
#include "catalog/indexing.h"
|
#include <catalog/indexing.h>
|
||||||
#include "fmgr.h"
|
#include <fmgr.h>
|
||||||
#include "utils/palloc.h"
|
#include <commands/purge.h>
|
||||||
|
#include <utils/builtins.h> /* for isreltime() */
|
||||||
#include "commands/purge.h"
|
|
||||||
#include "utils/builtins.h" /* for isreltime() */
|
|
||||||
|
|
||||||
static char cmdname[] = "RelationPurge";
|
static char cmdname[] = "RelationPurge";
|
||||||
|
|
||||||
|
@ -7,29 +7,28 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.4 1996/11/03 23:57:36 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.5 1996/11/06 08:21:37 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
#include <postgres.h>
|
||||||
|
|
||||||
|
#include <nodes/parsenodes.h>
|
||||||
#include "postgres.h"
|
#include <nodes/plannodes.h>
|
||||||
#include "nodes/parsenodes.h"
|
#include <nodes/execnodes.h>
|
||||||
#include "nodes/plannodes.h"
|
#include <nodes/makefuncs.h>
|
||||||
#include "nodes/execnodes.h"
|
#include <catalog/pg_type.h>
|
||||||
#include "nodes/makefuncs.h"
|
#include <commands/recipe.h>
|
||||||
#include "catalog/pg_type.h"
|
#include <libpq/libpq-be.h>
|
||||||
#include "commands/recipe.h"
|
#include <utils/builtins.h>
|
||||||
#include "libpq/libpq-be.h"
|
#include <utils/relcache.h> /* for RelationNameGetRelation*/
|
||||||
#include "utils/builtins.h"
|
#include <parser/parse_query.h>
|
||||||
#include "utils/relcache.h" /* for RelationNameGetRelation*/
|
#include <rewrite/rewriteHandler.h>
|
||||||
#include "parser/parse_query.h"
|
#include <rewrite/rewriteManip.h>
|
||||||
#include "rewrite/rewriteHandler.h"
|
#include <tcop/pquery.h>
|
||||||
#include "rewrite/rewriteManip.h"
|
#include <tcop/dest.h>
|
||||||
#include "tcop/pquery.h"
|
#include <optimizer/planner.h>
|
||||||
#include "tcop/dest.h"
|
#include <executor/executor.h>
|
||||||
#include "optimizer/planner.h"
|
|
||||||
#include "executor/executor.h"
|
|
||||||
|
|
||||||
/* from tcop/postgres.c */
|
/* from tcop/postgres.c */
|
||||||
extern CommandDest whereToSendOutput;
|
extern CommandDest whereToSendOutput;
|
||||||
@ -41,7 +40,7 @@ void beginRecipe(RecipeStmt *stmt) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "tioga/tgRecipe.h"
|
#include <tioga/tgRecipe.h>
|
||||||
|
|
||||||
#define DEBUG_RECIPE 1
|
#define DEBUG_RECIPE 1
|
||||||
|
|
||||||
|
@ -7,30 +7,31 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.5 1996/11/06 06:47:16 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.6 1996/11/06 08:21:38 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
#include <postgres.h>
|
||||||
|
|
||||||
|
#include <utils/acl.h>
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <utils/builtins.h>
|
||||||
|
#include <utils/syscache.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <commands/defrem.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 <parser/catalog_utils.h>
|
||||||
|
#include <storage/bufmgr.h>
|
||||||
|
#include <fmgr.h>
|
||||||
|
#ifndef HAVE_MEMMOVE
|
||||||
|
# include <regex/utils.h>
|
||||||
|
#else
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
|
#endif
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/tqual.h" /* for NowTimeQual */
|
|
||||||
#include "utils/syscache.h"
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
#include "commands/defrem.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 "parser/catalog_utils.h"
|
|
||||||
#include "storage/bufmgr.h"
|
|
||||||
#include "fmgr.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RemoveOperator --
|
* RemoveOperator --
|
||||||
|
@ -7,49 +7,39 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.2 1996/11/03 23:57:39 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.3 1996/11/06 08:21:39 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <postgres.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "access/heapam.h"
|
|
||||||
#include "access/relscan.h"
|
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/tqual.h"
|
|
||||||
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
#include "utils/syscache.h"
|
|
||||||
#include "catalog/indexing.h"
|
|
||||||
#include "catalog/catalog.h"
|
|
||||||
|
|
||||||
#include "commands/copy.h"
|
|
||||||
|
|
||||||
#include "executor/execdefs.h" /* for EXEC_{FOR,BACK,FDEBUG,BDEBUG} */
|
|
||||||
|
|
||||||
#include "storage/itemptr.h"
|
|
||||||
|
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "utils/portal.h"
|
|
||||||
#include "tcop/dest.h"
|
|
||||||
#include "commands/command.h"
|
|
||||||
|
|
||||||
#include "utils/excid.h"
|
|
||||||
#include "utils/mcxt.h"
|
|
||||||
#include "utils/palloc.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_attribute.h"
|
|
||||||
#include "catalog/pg_proc.h"
|
|
||||||
#include "catalog/pg_class.h"
|
|
||||||
|
|
||||||
#include "optimizer/internal.h"
|
|
||||||
#include "optimizer/prep.h" /* for find_all_inheritors */
|
|
||||||
|
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <access/relscan.h>
|
||||||
|
#include <utils/builtins.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <utils/syscache.h>
|
||||||
|
#include <catalog/indexing.h>
|
||||||
|
#include <catalog/catalog.h>
|
||||||
|
#include <commands/copy.h>
|
||||||
|
#include <executor/execdefs.h> /* for EXEC_{FOR,BACK,FDEBUG,BDEBUG} */
|
||||||
|
#include <miscadmin.h>
|
||||||
|
#include <utils/portal.h>
|
||||||
|
#include <tcop/dest.h>
|
||||||
|
#include <commands/command.h>
|
||||||
|
#include <utils/excid.h>
|
||||||
|
#include <utils/mcxt.h>
|
||||||
|
#include <catalog/pg_proc.h>
|
||||||
|
#include <catalog/pg_class.h>
|
||||||
|
#include <optimizer/internal.h>
|
||||||
|
#include <optimizer/prep.h> /* for find_all_inheritors */
|
||||||
#ifndef NO_SECURITY
|
#ifndef NO_SECURITY
|
||||||
#include "utils/acl.h"
|
# include <utils/acl.h>
|
||||||
#endif /* !NO_SECURITY */
|
#endif /* !NO_SECURITY */
|
||||||
|
#ifndef HAVE_MEMMOVE
|
||||||
|
# include <regex/utils.h>
|
||||||
|
#else
|
||||||
|
# include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* renameatt - changes the name of a attribute in a relation
|
* renameatt - changes the name of a attribute in a relation
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.7 1996/11/06 06:47:18 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8 1996/11/06 08:21:40 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -18,33 +18,25 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
#include <postgres.h>
|
||||||
#include "utils/portal.h"
|
|
||||||
|
|
||||||
#include "access/genam.h"
|
|
||||||
#include "access/heapam.h"
|
|
||||||
#include "access/xact.h"
|
|
||||||
#include "storage/bufmgr.h"
|
|
||||||
#include "access/transam.h"
|
|
||||||
#include "utils/tqual.h"
|
|
||||||
|
|
||||||
#include "catalog/pg_index.h"
|
|
||||||
#include "catalog/catname.h"
|
|
||||||
#include "catalog/pg_class.h"
|
|
||||||
#include "catalog/pg_proc.h"
|
|
||||||
|
|
||||||
#include "storage/smgr.h"
|
|
||||||
#include "storage/lmgr.h"
|
|
||||||
|
|
||||||
#include "utils/mcxt.h"
|
|
||||||
#include "utils/palloc.h"
|
|
||||||
|
|
||||||
#include "commands/vacuum.h"
|
|
||||||
|
|
||||||
#include "storage/bufpage.h"
|
|
||||||
|
|
||||||
|
#include <utils/portal.h>
|
||||||
|
#include <access/genam.h>
|
||||||
|
#include <access/heapam.h>
|
||||||
|
#include <access/xact.h>
|
||||||
|
#include <storage/bufmgr.h>
|
||||||
|
#include <access/transam.h>
|
||||||
|
#include <catalog/pg_index.h>
|
||||||
|
#include <catalog/catname.h>
|
||||||
|
#include <catalog/pg_class.h>
|
||||||
|
#include <catalog/pg_proc.h>
|
||||||
|
#include <storage/smgr.h>
|
||||||
|
#include <storage/lmgr.h>
|
||||||
|
#include <utils/mcxt.h>
|
||||||
|
#include <commands/vacuum.h>
|
||||||
|
#include <storage/bufpage.h>
|
||||||
#ifdef NEED_RUSAGE
|
#ifdef NEED_RUSAGE
|
||||||
#include "rusagestub.h"
|
# include <rusagestub.h>
|
||||||
#else /* NEED_RUSAGE */
|
#else /* NEED_RUSAGE */
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <sys/resource.h>
|
# include <sys/resource.h>
|
||||||
|
@ -7,25 +7,26 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.3 1996/11/03 23:57:43 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.4 1996/11/06 08:21:43 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <stdio.h> /* for sprintf() */
|
#include <stdio.h> /* for sprintf() */
|
||||||
#include "postgres.h"
|
|
||||||
#include "access/heapam.h"
|
#include <postgres.h>
|
||||||
#include "access/xact.h"
|
|
||||||
#include "utils/builtins.h"
|
#include <catalog/heap.h>
|
||||||
#include "utils/palloc.h"
|
#include <access/heapam.h>
|
||||||
#include "nodes/relation.h"
|
#include <access/xact.h>
|
||||||
#include "nodes/parsenodes.h"
|
#include <utils/builtins.h>
|
||||||
#include "parser/catalog_utils.h"
|
#include <nodes/relation.h>
|
||||||
#include "parser/parse_query.h"
|
#include <parser/catalog_utils.h>
|
||||||
#include "rewrite/rewriteDefine.h"
|
#include <parser/parse_query.h>
|
||||||
#include "rewrite/rewriteHandler.h"
|
#include <rewrite/rewriteDefine.h>
|
||||||
#include "rewrite/rewriteManip.h"
|
#include <rewrite/rewriteHandler.h>
|
||||||
#include "rewrite/rewriteRemove.h"
|
#include <rewrite/rewriteManip.h>
|
||||||
#include "commands/creatinh.h"
|
#include <rewrite/rewriteRemove.h>
|
||||||
|
#include <commands/creatinh.h>
|
||||||
|
|
||||||
/*---------------------------------------------------------------------
|
/*---------------------------------------------------------------------
|
||||||
* DefineVirtualRelation
|
* DefineVirtualRelation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user