1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-19 04:21:08 +03:00

Split plpython.c into smaller pieces

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
This commit is contained in:
Peter Eisentraut
2011-12-18 21:14:16 +02:00
parent 59e242a496
commit 147c248254
28 changed files with 5842 additions and 5442 deletions

View File

@ -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 */