2011-12-18 14:14:16 -05:00
|
|
|
/*
|
|
|
|
|
* src/pl/plpython/plpy_planobject.h
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef PLPY_PLANOBJECT_H
|
|
|
|
|
#define PLPY_PLANOBJECT_H
|
|
|
|
|
|
|
|
|
|
#include "executor/spi.h"
|
|
|
|
|
#include "plpy_typeio.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct PLyPlanObject
|
|
|
|
|
{
|
|
|
|
|
PyObject_HEAD
|
|
|
|
|
SPIPlanPtr plan;
|
|
|
|
|
int nargs;
|
|
|
|
|
Oid *types;
|
|
|
|
|
Datum *values;
|
|
|
|
|
PLyTypeInfo *args;
|
2015-11-05 13:52:30 -05:00
|
|
|
MemoryContext mcxt;
|
2011-12-18 14:14:16 -05:00
|
|
|
} PLyPlanObject;
|
|
|
|
|
|
|
|
|
|
extern void PLy_plan_init_type(void);
|
|
|
|
|
extern PyObject *PLy_plan_new(void);
|
2011-12-29 15:55:49 -05:00
|
|
|
extern bool is_PLyPlanObject(PyObject *ob);
|
2011-12-18 14:14:16 -05:00
|
|
|
|
2012-06-10 15:20:04 -04:00
|
|
|
#endif /* PLPY_PLANOBJECT_H */
|