2 * src/pl/plpython/plpy_subxactobject.h
5 #ifndef PLPY_SUBXACTOBJECT
6 #define PLPY_SUBXACTOBJECT
8 #include "nodes/pg_list.h"
9 #include "utils/resowner.h"
11 /* a list of nested explicit subtransactions */
12 extern List *explicit_subtransactions;
15 typedef struct PLySubtransactionObject
20 } PLySubtransactionObject;
22 /* explicit subtransaction data */
23 typedef struct PLySubtransactionData
25 MemoryContext oldcontext;
26 ResourceOwner oldowner;
27 } PLySubtransactionData;
29 extern void PLy_subtransaction_init_type(void);
30 extern PyObject *PLy_subtransaction_new(PyObject *self, PyObject *unused);
32 #endif /* PLPY_SUBXACTOBJECT */