mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 12:20:31 +01:00
Similar to commits14aec03502,7e735035f2anddddf4cdc33, this commit makes the order of header file inclusion consistent in more places. Author: Vignesh C Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
27 lines
861 B
C
27 lines
861 B
C
/*
|
|
* src/pl/plpython/plpy_spi.h
|
|
*/
|
|
|
|
#ifndef PLPY_SPI_H
|
|
#define PLPY_SPI_H
|
|
|
|
#include "plpython.h"
|
|
#include "utils/resowner.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 */
|