summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/executor/spi_priv.h16
-rw-r--r--src/include/tcop/tcopprot.h5
2 files changed, 17 insertions, 4 deletions
diff --git a/src/include/executor/spi_priv.h b/src/include/executor/spi_priv.h
index c780c3656fa..6a2acd7b21c 100644
--- a/src/include/executor/spi_priv.h
+++ b/src/include/executor/spi_priv.h
@@ -1,9 +1,12 @@
/*-------------------------------------------------------------------------
*
- * spi.c
+ * spi_priv.h
* Server Programming Interface private declarations
*
- * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.12 2002/05/21 22:05:55 tgl Exp $
+ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: spi_priv.h,v 1.13 2002/10/14 23:49:20 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -12,9 +15,9 @@
#include "executor/spi.h"
+
typedef struct
{
- List *qtlist;
uint32 processed; /* by Executor */
SPITupleTable *tuptable;
MemoryContext procCxt; /* procedure context */
@@ -24,13 +27,20 @@ typedef struct
typedef struct
{
+ /* context containing _SPI_plan itself as well as subsidiary structures */
MemoryContext plancxt;
+ /* List of List of querytrees; one sublist per original parsetree */
List *qtlist;
+ /* List of plan trees --- length == # of querytrees, but flat list */
List *ptlist;
+ /* Argument types, if a prepared plan */
int nargs;
Oid *argtypes;
+ /* Command type of last original parsetree */
+ CmdType origCmdType;
} _SPI_plan;
+
#define _SPI_CPLAN_CURCXT 0
#define _SPI_CPLAN_PROCXT 1
#define _SPI_CPLAN_TOPCXT 2
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index 7123f493a96..ae909eb8af5 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tcopprot.h,v 1.49 2002/06/20 20:29:52 momjian Exp $
+ * $Id: tcopprot.h,v 1.50 2002/10/14 23:49:20 tgl Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
@@ -35,12 +35,15 @@ extern bool ShowPortNumber;
#ifndef BOOTSTRAP_INCLUDE
+extern List *pg_parse_query(StringInfo query_string, Oid *typev, int nargs);
+extern List *pg_analyze_and_rewrite(Node *parsetree);
extern List *pg_parse_and_rewrite(char *query_string,
Oid *typev, int nargs);
extern Plan *pg_plan_query(Query *querytree);
extern void pg_exec_query_string(StringInfo query_string,
CommandDest dest,
MemoryContext parse_context);
+
#endif /* BOOTSTRAP_INCLUDE */
extern void die(SIGNAL_ARGS);