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 46 of file plpy_subxactobject.c.

47{
48 if (PyType_Ready(&PLy_SubtransactionType) < 0)
49 elog(ERROR, "could not initialize PLy_SubtransactionType");
50}
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:225
static PyTypeObject PLy_SubtransactionType

References elog, ERROR, and PLy_SubtransactionType.

Referenced by PLy_init_plpy().

◆ PLy_subtransaction_new()

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

Definition at line 54 of file plpy_subxactobject.c.

55{
57
59
60 if (ob == NULL)
61 return NULL;
62
63 ob->started = false;
64 ob->exited = false;
65
66 return (PyObject *) ob;
67}
PyObject_HEAD bool started

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

Variable Documentation

◆ explicit_subtransactions