From 147c2482542868d1f9dcf7d2ecfeac58d845335c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 18 Dec 2011 21:14:16 +0200 Subject: Split plpython.c into smaller pieces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This moves the code around from one huge file into hopefully logical and more manageable modules. For the most part, the code itself was not touched, except: PLy_function_handler and PLy_trigger_handler were renamed to PLy_exec_function and PLy_exec_trigger, because they were not actually handlers in the PL handler sense, and it makes the naming more similar to the way PL/pgSQL is organized. The initialization of the procedure caches was separated into a new function init_procedure_caches to keep the hash tables private to plpy_procedures.c. Jan UrbaƄski and Peter Eisentraut --- src/pl/plpython/plpy_cursorobject.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/pl/plpython/plpy_cursorobject.h (limited to 'src/pl/plpython/plpy_cursorobject.h') diff --git a/src/pl/plpython/plpy_cursorobject.h b/src/pl/plpython/plpy_cursorobject.h new file mode 100644 index 00000000000..706134ea2c7 --- /dev/null +++ b/src/pl/plpython/plpy_cursorobject.h @@ -0,0 +1,22 @@ +/* + * src/pl/plpython/plpy_cursorobject.h + */ + +#ifndef PLPY_CURSOROBJECT_H +#define PLPY_CURSOROBJECT_H + +#include "plpy_typeio.h" + + +typedef struct PLyCursorObject +{ + PyObject_HEAD + char *portalname; + PLyTypeInfo result; + bool closed; +} PLyCursorObject; + +extern void PLy_cursor_init_type(void); +extern PyObject *PLy_cursor(PyObject *, PyObject *); + +#endif /* PLPY_CURSOROBJECT_H */ -- cgit v1.2.3