1999-01-27 17:15:22 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* spi.c
|
1999-01-27 17:15:22 +01:00
|
|
|
* Server Programming Interface private declarations
|
|
|
|
*
|
2002-05-22 00:05:55 +02:00
|
|
|
* $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.12 2002/05/21 22:05:55 tgl Exp $
|
1999-01-27 17:15:22 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef SPI_PRIV_H
|
|
|
|
#define SPI_PRIV_H
|
|
|
|
|
1999-07-14 03:20:30 +02:00
|
|
|
#include "executor/spi.h"
|
1999-01-27 17:15:22 +01:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
1999-05-13 09:29:22 +02:00
|
|
|
List *qtlist;
|
1999-01-27 17:15:22 +01:00
|
|
|
uint32 processed; /* by Executor */
|
|
|
|
SPITupleTable *tuptable;
|
2000-06-28 05:33:33 +02:00
|
|
|
MemoryContext procCxt; /* procedure context */
|
|
|
|
MemoryContext execCxt; /* executor context */
|
1999-01-27 17:15:22 +01:00
|
|
|
MemoryContext savedcxt;
|
|
|
|
} _SPI_connection;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2001-05-21 16:22:19 +02:00
|
|
|
MemoryContext plancxt;
|
1999-05-13 09:29:22 +02:00
|
|
|
List *qtlist;
|
1999-01-27 17:15:22 +01:00
|
|
|
List *ptlist;
|
|
|
|
int nargs;
|
|
|
|
Oid *argtypes;
|
|
|
|
} _SPI_plan;
|
|
|
|
|
|
|
|
#define _SPI_CPLAN_CURCXT 0
|
|
|
|
#define _SPI_CPLAN_PROCXT 1
|
|
|
|
#define _SPI_CPLAN_TOPCXT 2
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* SPI_PRIV_H */
|