Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Typedefs | Functions | Variables

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

{
    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;
}


Variable Documentation