#include "nodes/pg_list.h"
#include "utils/resowner.h"
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 | |
List * | explicit_subtransactions |
typedef struct PLySubtransactionData PLySubtransactionData |
typedef struct PLySubtransactionObject PLySubtransactionObject |
void PLy_subtransaction_init_type | ( | void | ) |
Definition at line 76 of file plpy_subxactobject.c.
References elog, ERROR, and PLy_SubtransactionType.
Referenced by PLy_init_plpy().
{ if (PyType_Ready(&PLy_SubtransactionType) < 0) elog(ERROR, "could not initialize PLy_SubtransactionType"); }
PyObject* PLy_subtransaction_new | ( | PyObject * | self, | |
PyObject * | unused | |||
) |
Definition at line 84 of file plpy_subxactobject.c.
References PLySubtransactionObject::exited, NULL, PLy_SubtransactionType, and PLySubtransactionObject::started.
{ PLySubtransactionObject *ob; ob = PyObject_New(PLySubtransactionObject, &PLy_SubtransactionType); if (ob == NULL) return NULL; ob->started = false; ob->exited = false; return (PyObject *) ob; }
Definition at line 19 of file plpy_subxactobject.c.
Referenced by _PG_init(), PLy_abort_open_subtransactions(), and PLy_procedure_call().