PostgreSQL Source Code git master
Data Structures | Typedefs | Functions | Variables
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

 
 

Typedefs

 
 

Functions

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

Variables

 

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:226
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

List* explicit_subtransactions
extern

Definition at line 15 of file plpy_subxactobject.c.

Referenced by PLy_abort_open_subtransactions(), PLy_initialize(), PLy_procedure_call(), PLy_subtransaction_enter(), and PLy_subtransaction_exit().

AltStyle によって変換されたページ (->オリジナル) /