PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
plpy_subxactobject.h
Go to the documentation of this file.
1
/*
2
* src/pl/plpython/plpy_subxactobject.h
3
*/
4
5
#ifndef PLPY_SUBXACTOBJECT
6
#define PLPY_SUBXACTOBJECT
7
8
#include "
nodes/pg_list.h
"
9
#include "
plpython.h
"
10
#include "
utils/resowner.h
"
11
12
/* a list of nested explicit subtransactions */
13
extern
List
*
explicit_subtransactions
;
14
15
16
typedef
struct
PLySubtransactionObject
17
{
18
PyObject_HEAD
19
bool
started
;
20
bool
exited
;
21
}
PLySubtransactionObject
;
22
23
/* explicit subtransaction data */
24
typedef
struct
PLySubtransactionData
25
{
26
MemoryContext
oldcontext
;
27
ResourceOwner
oldowner
;
28
}
PLySubtransactionData
;
29
30
extern
void
PLy_subtransaction_init_type
(
void
);
31
extern
PyObject
*
PLy_subtransaction_new
(
PyObject
*self,
PyObject
*unused);
32
33
#endif
/* PLPY_SUBXACTOBJECT */
pg_list.h
PLy_subtransaction_new
PyObject * PLy_subtransaction_new(PyObject *self, PyObject *unused)
Definition
plpy_subxactobject.c:67
explicit_subtransactions
List * explicit_subtransactions
Definition
plpy_subxactobject.c:15
PLy_subtransaction_init_type
void PLy_subtransaction_init_type(void)
Definition
plpy_subxactobject.c:58
plpython.h
fb
static int fb(int x)
Definition
preproc-init.c:92
resowner.h
List
Definition
pg_list.h:54
MemoryContextData
Definition
memnodes.h:118
PLySubtransactionData
Definition
plpy_subxactobject.h:25
PLySubtransactionData::oldcontext
MemoryContext oldcontext
Definition
plpy_subxactobject.h:26
PLySubtransactionData::oldowner
ResourceOwner oldowner
Definition
plpy_subxactobject.h:27
PLySubtransactionObject
Definition
plpy_subxactobject.h:17
PLySubtransactionObject::exited
bool exited
Definition
plpy_subxactobject.h:20
PLySubtransactionObject::started
PyObject_HEAD bool started
Definition
plpy_subxactobject.h:19
ResourceOwnerData
Definition
resowner.c:113
src
pl
plpython
plpy_subxactobject.h
Generated on Sat Jan 31 2026 06:13:18 for PostgreSQL Source Code by
1.9.8