PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/xact.h"
#include "plpy_elog.h"
#include "plpy_subxactobject.h"
#include "plpython.h"
#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
static void | PLy_subtransaction_dealloc (PyObject *subxact) |
static PyObject * | PLy_subtransaction_enter (PyObject *self, PyObject *unused) |
static PyObject * | PLy_subtransaction_exit (PyObject *self, PyObject *args) |
void | PLy_subtransaction_init_type (void) |
PyObject * | PLy_subtransaction_new (PyObject *self, PyObject *unused) |
Variables | |
List * | explicit_subtransactions = NIL |
static char | PLy_subtransaction_doc [] |
static PyMethodDef | PLy_subtransaction_methods [] |
static PyTypeObject | PLy_SubtransactionType |
|
static |
Definition at line 71 of file plpy_subxactobject.c.
|
static |
Definition at line 84 of file plpy_subxactobject.c.
References BeginInternalSubTransaction(), CurrentMemoryContext, CurrentResourceOwner, PLySubtransactionObject::exited, explicit_subtransactions, lcons(), MemoryContextAlloc(), MemoryContextSwitchTo(), PLySubtransactionData::oldcontext, PLySubtransactionData::oldowner, PLy_exception_set(), PLySubtransactionObject::started, and TopTransactionContext.
|
static |
Definition at line 137 of file plpy_subxactobject.c.
References generate_unaccent_rules::args, CurrentResourceOwner, PLySubtransactionObject::exited, explicit_subtransactions, linitial, list_delete_first(), MemoryContextSwitchTo(), NIL, PLySubtransactionData::oldcontext, PLySubtransactionData::oldowner, pfree(), PLy_exception_set(), ReleaseCurrentSubTransaction(), RollbackAndReleaseCurrentSubTransaction(), PLySubtransactionObject::started, type, and value.
void PLy_subtransaction_init_type | ( | void | ) |
Definition at line 46 of file plpy_subxactobject.c.
References elog, ERROR, and PLy_SubtransactionType.
Referenced by PLy_init_plpy().
PyObject* PLy_subtransaction_new | ( | PyObject * | self, |
PyObject * | unused | ||
) |
Definition at line 54 of file plpy_subxactobject.c.
References PLySubtransactionObject::exited, PLy_SubtransactionType, and PLySubtransactionObject::started.
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().
|
static |
Definition at line 22 of file plpy_subxactobject.c.
|
static |
Definition at line 25 of file plpy_subxactobject.c.
|
static |
Definition at line 34 of file plpy_subxactobject.c.
Referenced by PLy_subtransaction_init_type(), and PLy_subtransaction_new().