aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tcop')
-rw-r--r--src/backend/tcop/dest.h78
-rw-r--r--src/backend/tcop/fastpath.h31
-rw-r--r--src/backend/tcop/pquery.h36
-rw-r--r--src/backend/tcop/tcopdebug.h43
-rw-r--r--src/backend/tcop/tcopprot.h40
-rw-r--r--src/backend/tcop/utility.h18
6 files changed, 0 insertions, 246 deletions
diff --git a/src/backend/tcop/dest.h b/src/backend/tcop/dest.h
deleted file mode 100644
index 369a4060db2..00000000000
--- a/src/backend/tcop/dest.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * dest.h--
- * Whenever the backend is submitted a query, the results
- * have to go someplace - either to the standard output,
- * to a local portal buffer or to a remote portal buffer.
- *
- * - stdout is the destination only when we are running a
- * backend without a postmaster and are returning results
- * back to the user.
- *
- * - a local portal buffer is the destination when a backend
- * executes a user-defined function which calls PQexec() or
- * PQfn(). In this case, the results are collected into a
- * PortalBuffer which the user's function may diddle with.
- *
- * - a remote portal buffer is the destination when we are
- * running a backend with a frontend and the frontend executes
- * PQexec() or PQfn(). In this case, the results are sent
- * to the frontend via the pq_ functions.
- *
- * - None is the destination when the system executes
- * a query internally. This is not used now but it may be
- * useful for the parallel optimiser/executor.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: dest.h,v 1.1.1.1 1996/07/09 06:21:59 scrappy Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef DEST_H
-#define DEST_H
-
-#include "catalog/pg_attribute.h"
-#include "access/tupdesc.h"
-
-/* ----------------
- * CommandDest is used to allow the results of calling
- * pg_eval() to go to the right place.
- * ----------------
- */
-typedef enum {
- None, /* results are discarded */
- Debug, /* results go to debugging output */
- Local, /* results go in local portal buffer */
- Remote, /* results sent to frontend process */
- CopyBegin, /* results sent to frontend process but are strings */
- CopyEnd, /* results sent to frontend process but are strings */
- RemoteInternal /* results sent to frontend process in internal
- (binary) form */
-} CommandDest;
-
-
-/* AttrInfo* replaced with TupleDesc, now that TupleDesc also has within it
- the number of attributes
-
-typedef struct AttrInfo {
- int numAttr;
- AttributeTupleForm *attrs;
-} AttrInfo;
-*/
-
-extern void donothing(List *tuple, List *attrdesc);
-extern void (*DestToFunction(CommandDest dest))();
-extern void EndCommand(char *commandTag, CommandDest dest);
-extern void SendCopyBegin();
-extern void ReceiveCopyBegin();
-extern void NullCommand(CommandDest dest);
-extern void BeginCommand(char *pname, int operation, TupleDesc attinfo,
- bool isIntoRel, bool isIntoPortal, char *tag,
- CommandDest dest);
-extern void ResetAppendOid();
-extern void UpdateAppendOid(Oid newoid);
-extern Oid GetAppendOid();
-
-#endif /* DEST_H */
diff --git a/src/backend/tcop/fastpath.h b/src/backend/tcop/fastpath.h
deleted file mode 100644
index 501522385a3..00000000000
--- a/src/backend/tcop/fastpath.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * fastpath.h--
- *
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: fastpath.h,v 1.1.1.1 1996/07/09 06:21:59 scrappy Exp $
- *
- * NOTES
- * This information pulled out of tcop/fastpath.c and put
- * here so that the PQfn() in be-pqexec.c could access it.
- * -cim 2/26/91
- *
- *-------------------------------------------------------------------------
- */
-#ifndef FASTPATH_H
-#define FASTPATH_H
-
-/* ----------------
- * fastpath #defines
- * ----------------
- */
-#define VAR_LENGTH_RESULT (-1)
-#define VAR_LENGTH_ARG (-5)
-#define MAX_STRING_LENGTH 256
-
-extern int HandleFunctionRequest(void);
-
-#endif /* FASTPATH_H */
diff --git a/src/backend/tcop/pquery.h b/src/backend/tcop/pquery.h
deleted file mode 100644
index 0661d12ad80..00000000000
--- a/src/backend/tcop/pquery.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * pquery.h--
- * prototypes for pquery.c.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: pquery.h,v 1.1.1.1 1996/07/09 06:22:00 scrappy Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef PQUERY_H
-#define PQUERY_H
-
-#include "executor/execdesc.h"
-#include "tcop/dest.h"
-
-/* moved to execdesc.h
-extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
- CommandDest dest);
-
-*/
-extern EState *CreateExecutorState();
-
-
-extern void ProcessPortal(char *portalName, Query *parseTree,
- Plan *plan, EState *state, TupleDesc attinfo,
- CommandDest dest);
-
-extern void ProcessQueryDesc(QueryDesc *queryDesc);
-
-extern void ProcessQuery(Query *parsetree, Plan *plan, char *argv[],
- Oid *typev, int nargs, CommandDest dest);
-
-#endif /* pqueryIncluded */
diff --git a/src/backend/tcop/tcopdebug.h b/src/backend/tcop/tcopdebug.h
deleted file mode 100644
index 202be631afb..00000000000
--- a/src/backend/tcop/tcopdebug.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * tcopdebug.h--
- * #defines governing debugging behaviour in the traffic cop
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: tcopdebug.h,v 1.1.1.1 1996/07/09 06:22:00 scrappy Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef TCOPDEBUG_H
-#define TCOPDEBUG_H
-
-/* ----------------------------------------------------------------
- * debugging defines.
- *
- * If you want certain debugging behaviour, then #define
- * the variable to 1, else #undef it. -cim 10/26/89
- * ----------------------------------------------------------------
- */
-
-/* ----------------
- * TCOP_SHOWSTATS controls whether or not buffer and
- * access method statistics are shown for each query. -cim 2/9/89
- * ----------------
- */
-#undef TCOP_SHOWSTATS
-
-/* ----------------
- * TCOP_DONTUSENEWLINE controls the default setting of
- * the UseNewLine variable in postgres.c
- * ----------------
- */
-#undef TCOP_DONTUSENEWLINE
-
-/* ----------------------------------------------------------------
- * #defines controlled by above definitions
- * ----------------------------------------------------------------
- */
-
-#endif /* TCOPDEBUG_H */
diff --git a/src/backend/tcop/tcopprot.h b/src/backend/tcop/tcopprot.h
deleted file mode 100644
index faf82414369..00000000000
--- a/src/backend/tcop/tcopprot.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * tcopprot.h--
- * prototypes for postgres.c.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: tcopprot.h,v 1.2 1996/08/19 13:37:50 scrappy Exp $
- *
- * OLD COMMENTS
- * This file was created so that other c files could get the two
- * function prototypes without having to include tcop.h which single
- * handedly includes the whole f*cking tree -- mer 5 Nov. 1991
- *
- *-------------------------------------------------------------------------
- */
-#ifndef TCOPPROT_H
-#define TCOPPROT_H
-
-#include "tcop/dest.h"
-#include "nodes/pg_list.h"
-#include "parser/parse_query.h"
-
-#ifndef BOOTSTRAP_INCLUDE
-extern List *pg_plan(char *query_string, Oid *typev, int nargs,
- QueryTreeList **queryListP, CommandDest dest);
-extern void pg_eval(char *query_string, char **argv, Oid *typev, int nargs);
-extern void pg_eval_dest(char *query_string, char **argv, Oid *typev,
- int nargs, CommandDest dest);
-#endif /* BOOTSTRAP_HEADER */
-
-extern void handle_warn();
-extern void quickdie();
-extern void die();
-extern int PostgresMain(int argc, char *argv[]);
-extern void ResetUsage();
-extern void ShowUsage();
-
-#endif /* tcopprotIncluded */
diff --git a/src/backend/tcop/utility.h b/src/backend/tcop/utility.h
deleted file mode 100644
index 8a3035c0c4a..00000000000
--- a/src/backend/tcop/utility.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * utility.h--
- * prototypes for utility.c.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: utility.h,v 1.1.1.1 1996/07/09 06:22:00 scrappy Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef UTILITY_H
-#define UTILITY_H
-
-extern void ProcessUtility(Node *parsetree, CommandDest dest);
-
-#endif /* UTILITY_H */