PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plpy_subxactobject.h File Reference
#include "nodes/pg_list.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

Function Documentation

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().

77 {
78  if (PyType_Ready(&PLy_SubtransactionType) < 0)
79  elog(ERROR, "could not initialize PLy_SubtransactionType");
80 }
#define ERROR
Definition: elog.h:43
#define elog
Definition: elog.h:219
static PyTypeObject 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.

85 {
87 
89 
90  if (ob == NULL)
91  return NULL;
92 
93  ob->started = false;
94  ob->exited = false;
95 
96  return (PyObject *) ob;
97 }
#define NULL
Definition: c.h:229
PyObject_HEAD bool started
static PyTypeObject PLy_SubtransactionType

Variable Documentation

List* explicit_subtransactions