Split plpython.c into smaller pieces
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 18 Dec 2011 19:14:16 +0000 (21:14 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 18 Dec 2011 19:24:00 +0000 (21:24 +0200)
commit147c2482542868d1f9dcf7d2ecfeac58d845335c
tree11617370d58bfc7ff6cca2b5b78212dd804a1147
parent59e242a4969d2efa6ce68dc7aab3cbd8cf975b08
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
28 files changed:
src/pl/plpython/Makefile
src/pl/plpython/nls.mk
src/pl/plpython/plpy_cursorobject.c [new file with mode: 0644]
src/pl/plpython/plpy_cursorobject.h [new file with mode: 0644]
src/pl/plpython/plpy_elog.c [new file with mode: 0644]
src/pl/plpython/plpy_elog.h [new file with mode: 0644]
src/pl/plpython/plpy_exec.c [new file with mode: 0644]
src/pl/plpython/plpy_exec.h [new file with mode: 0644]
src/pl/plpython/plpy_main.c [new file with mode: 0644]
src/pl/plpython/plpy_main.h [new file with mode: 0644]
src/pl/plpython/plpy_planobject.c [new file with mode: 0644]
src/pl/plpython/plpy_planobject.h [new file with mode: 0644]
src/pl/plpython/plpy_plpymodule.c [new file with mode: 0644]
src/pl/plpython/plpy_plpymodule.h [new file with mode: 0644]
src/pl/plpython/plpy_procedure.c [new file with mode: 0644]
src/pl/plpython/plpy_procedure.h [new file with mode: 0644]
src/pl/plpython/plpy_resultobject.c [new file with mode: 0644]
src/pl/plpython/plpy_resultobject.h [new file with mode: 0644]
src/pl/plpython/plpy_spi.c [new file with mode: 0644]
src/pl/plpython/plpy_spi.h [new file with mode: 0644]
src/pl/plpython/plpy_subxactobject.c [new file with mode: 0644]
src/pl/plpython/plpy_subxactobject.h [new file with mode: 0644]
src/pl/plpython/plpy_typeio.c [new file with mode: 0644]
src/pl/plpython/plpy_typeio.h [new file with mode: 0644]
src/pl/plpython/plpy_util.c [new file with mode: 0644]
src/pl/plpython/plpy_util.h [new file with mode: 0644]
src/pl/plpython/plpython.c [deleted file]
src/pl/plpython/plpython.h [new file with mode: 0644]