Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
postgresql-12
/
include
/
server
/
//proc/thread-self/root/opt/postgresql-12/include/server/plpy_spi.h
/* * src/pl/plpython/plpy_spi.h */ #ifndef PLPY_SPI_H #define PLPY_SPI_H #include "utils/resowner.h" #include "plpython.h" extern PyObject *PLy_spi_prepare(PyObject *self, PyObject *args); extern PyObject *PLy_spi_execute(PyObject *self, PyObject *args); extern PyObject *PLy_spi_execute_plan(PyObject *ob, PyObject *list, long limit); typedef struct PLyExceptionEntry { int sqlstate; /* hash key, must be first */ PyObject *exc; /* corresponding exception */ } PLyExceptionEntry; /* handling of SPI operations inside subtransactions */ extern void PLy_spi_subtransaction_begin(MemoryContext oldcontext, ResourceOwner oldowner); extern void PLy_spi_subtransaction_commit(MemoryContext oldcontext, ResourceOwner oldowner); extern void PLy_spi_subtransaction_abort(MemoryContext oldcontext, ResourceOwner oldowner); #endif /* PLPY_SPI_H */