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
|
|
|
|
*
|
1999-07-14 03:20:30 +02:00
|
|
|
* $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.5 1999/07/14 01:20:17 momjian 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
|
|
|
#include "catalog/pg_type.h"
|
|
|
|
#include "access/printtup.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
Portal portal; /* portal per procedure */
|
|
|
|
MemoryContext savedcxt;
|
|
|
|
CommandId savedId;
|
|
|
|
} _SPI_connection;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
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
|
|
|
|
|
1999-05-25 18:15:34 +02:00
|
|
|
#endif /* SPI_PRIV_H */
|