PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plpy_subxactobject.h File Reference
#include "nodes/pg_list.h"
#include "plpython.h"
#include "utils/resowner.h"
Include dependency graph for plpy_subxactobject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PLySubtransactionObject
 
struct  PLySubtransactionData
 

Typedefs

typedef struct PLySubtransactionObject PLySubtransactionObject
 
typedef struct PLySubtransactionData PLySubtransactionData
 

Functions

void PLy_subtransaction_init_type (void)
 
PyObject * PLy_subtransaction_new (PyObject *self, PyObject *unused)
 

Variables

Listexplicit_subtransactions
 

Typedef Documentation

◆ PLySubtransactionData

◆ PLySubtransactionObject

Function Documentation

◆ PLy_subtransaction_init_type()

void PLy_subtransaction_init_type ( void  )

Definition at line 58 of file plpy_subxactobject.c.

59{
60 PLy_SubtransactionType = (PyTypeObject *) PyType_FromSpec(&PLySubtransaction_spec);
62 elog(ERROR, "could not initialize PLy_SubtransactionType");
63}
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:225
static PyTypeObject * PLy_SubtransactionType
static PyType_Spec PLySubtransaction_spec

References elog, ERROR, PLy_SubtransactionType, and PLySubtransaction_spec.

Referenced by PLy_init_plpy().

◆ PLy_subtransaction_new()

PyObject * PLy_subtransaction_new ( PyObject *  self,
PyObject *  unused 
)

Definition at line 67 of file plpy_subxactobject.c.

68{
70
72 if (ob == NULL)
73 return NULL;
74#if PY_VERSION_HEX < 0x03080000
75 /* Workaround for Python issue 35810; no longer necessary in Python 3.8 */
76 Py_INCREF(PLy_SubtransactionType);
77#endif
78
79 ob->started = false;
80 ob->exited = false;
81
82 return (PyObject *) ob;
83}
PyObject_HEAD bool started

References PLySubtransactionObject::exited, PLy_SubtransactionType, and PLySubtransactionObject::started.

Variable Documentation

◆ explicit_subtransactions