mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* spi_priv.h
|
|
* Server Programming Interface private declarations
|
|
*
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/executor/spi_priv.h,v 1.22 2004/12/31 22:03:29 pgsql Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SPI_PRIV_H
|
|
#define SPI_PRIV_H
|
|
|
|
#include "executor/spi.h"
|
|
|
|
|
|
typedef struct
|
|
{
|
|
uint32 processed; /* by Executor */
|
|
SPITupleTable *tuptable;
|
|
MemoryContext procCxt; /* procedure context */
|
|
MemoryContext execCxt; /* executor context */
|
|
MemoryContext savedcxt;
|
|
SubTransactionId connectSubid; /* ID of connecting subtransaction */
|
|
} _SPI_connection;
|
|
|
|
typedef struct
|
|
{
|
|
/* Context containing _SPI_plan itself as well as subsidiary data */
|
|
MemoryContext plancxt;
|
|
/* Original query string (used for error reporting) */
|
|
const char *query;
|
|
/* 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;
|
|
} _SPI_plan;
|
|
|
|
|
|
#define _SPI_CPLAN_CURCXT 0
|
|
#define _SPI_CPLAN_PROCXT 1
|
|
#define _SPI_CPLAN_TOPCXT 2
|
|
|
|
#endif /* SPI_PRIV_H */
|