mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +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:
26
src/pl/plpython/plpy_planobject.h
Normal file
26
src/pl/plpython/plpy_planobject.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* src/pl/plpython/plpy_planobject.h
|
||||
*/
|
||||
|
||||
#ifndef PLPY_PLANOBJECT_H
|
||||
#define PLPY_PLANOBJECT_H
|
||||
|
||||
#include "executor/spi.h"
|
||||
#include "plpy_typeio.h"
|
||||
|
||||
|
||||
typedef struct PLyPlanObject
|
||||
{
|
||||
PyObject_HEAD
|
||||
SPIPlanPtr plan;
|
||||
int nargs;
|
||||
Oid *types;
|
||||
Datum *values;
|
||||
PLyTypeInfo *args;
|
||||
} PLyPlanObject;
|
||||
|
||||
extern void PLy_plan_init_type(void);
|
||||
extern PyObject *PLy_plan_new(void);
|
||||
extern bool is_PLyPlanObject(PyObject *);
|
||||
|
||||
#endif /* PLPY_PLANOBJECT_H */
|
Reference in New Issue
Block a user