PostgreSQL Source Code git master
Loading...
Searching...
No Matches
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)
 
PyObjectPLy_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  )
extern

Definition at line 58 of file plpy_subxactobject.c.

59{
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
static int fb(int x)

References elog, ERROR, fb(), PLy_SubtransactionType, and PLySubtransaction_spec.

Referenced by PyInit_plpy().

◆ PLy_subtransaction_new()

PyObject * PLy_subtransaction_new ( PyObject self,
PyObject unused 
)
extern

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 */
77#endif
78
79 ob->started = false;
80 ob->exited = false;
81
82 return (PyObject *) ob;
83}

References fb(), and PLy_SubtransactionType.

Variable Documentation

◆ explicit_subtransactions

List* explicit_subtransactions
extern