spi_priv.h
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:1k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. /*-------------------------------------------------------------------------
  2.  *
  3.  * spi.c
  4.  * Server Programming Interface private declarations
  5.  *
  6.  * $Header: /usr/local/cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.4 1999/05/25 16:13:57 momjian Exp $
  7.  *
  8.  *-------------------------------------------------------------------------
  9.  */
  10. #ifndef SPI_PRIV_H
  11. #define SPI_PRIV_H
  12. #include "catalog/pg_type.h"
  13. #include "access/printtup.h"
  14. typedef struct
  15. {
  16. List    *qtlist;
  17. uint32 processed; /* by Executor */
  18. SPITupleTable *tuptable;
  19. Portal portal; /* portal per procedure */
  20. MemoryContext savedcxt;
  21. CommandId savedId;
  22. } _SPI_connection;
  23. typedef struct
  24. {
  25. List    *qtlist;
  26. List    *ptlist;
  27. int nargs;
  28. Oid    *argtypes;
  29. } _SPI_plan;
  30. #define _SPI_CPLAN_CURCXT 0
  31. #define _SPI_CPLAN_PROCXT 1
  32. #define _SPI_CPLAN_TOPCXT 2
  33. #endif  /* SPI_PRIV_H */