2 * src/pl/plpython/plpy_subxactobject.h
5 #ifndef PLPY_SUBXACTOBJECT
6 #define PLPY_SUBXACTOBJECT
8 #include "nodes/pg_list.h"
10 #include "utils/resowner.h"
12 /* a list of nested explicit subtransactions */
13 extern List
*explicit_subtransactions
;
16 typedef struct PLySubtransactionObject
21 } PLySubtransactionObject
;
23 /* explicit subtransaction data */
24 typedef struct PLySubtransactionData
26 MemoryContext oldcontext
;
27 ResourceOwner oldowner
;
28 } PLySubtransactionData
;
30 extern void PLy_subtransaction_init_type(void);
31 extern PyObject
*PLy_subtransaction_new(PyObject
*self
, PyObject
*unused
);
33 #endif /* PLPY_SUBXACTOBJECT */