PostgreSQL Source Code  git master
plpy_subxactobject.h File Reference
#include "nodes/pg_list.h"
#include "utils/resowner.h"
#include "plpython.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 51 of file plpy_subxactobject.c.

References elog, ERROR, and PLy_SubtransactionType.

Referenced by PLy_init_plpy().

52 {
53  if (PyType_Ready(&PLy_SubtransactionType) < 0)
54  elog(ERROR, "could not initialize PLy_SubtransactionType");
55 }
#define ERROR
Definition: elog.h:43
#define elog(elevel,...)
Definition: elog.h:226
static PyTypeObject PLy_SubtransactionType

◆ PLy_subtransaction_new()

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

Definition at line 59 of file plpy_subxactobject.c.

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

60 {
62 
64 
65  if (ob == NULL)
66  return NULL;
67 
68  ob->started = false;
69  ob->exited = false;
70 
71  return (PyObject *) ob;
72 }
PyObject_HEAD bool started
static PyTypeObject PLy_SubtransactionType

Variable Documentation

◆ explicit_subtransactions

List* explicit_subtransactions