|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | PLySavedArgs |
| struct | PLySRFState |
| struct | PLyProcedure |
| struct | PLyProcedureCache |
Typedefs | |
| typedef enum PLyTrigType | PLyTrigType |
| typedef struct PLySavedArgs | PLySavedArgs |
| typedef struct PLySRFState | PLySRFState |
| typedef struct PLyProcedure | PLyProcedure |
| typedef struct PLyProcedureCache | PLyProcedureCache |
Enumerations | |
| enum | PLyTrigType { PLPY_TRIGGER , PLPY_EVENT_TRIGGER , PLPY_NOT_TRIGGER } |
Functions | |
| char * | PLy_procedure_name (PLyProcedure *proc) |
| PLyProcedureCache * | PLy_procedure_get (FunctionCallInfo fcinfo, bool forValidator) |
| void | PLy_procedure_compile (PLyProcedure *proc, const char *src) |
| void | PLy_procedure_delete (PLyProcedure *proc) |
| typedef struct PLyProcedure PLyProcedure |
| typedef struct PLySavedArgs PLySavedArgs |
| typedef struct PLySRFState PLySRFState |
| Enumerator | |
|---|---|
| PLPY_TRIGGER | |
| PLPY_EVENT_TRIGGER | |
| PLPY_NOT_TRIGGER | |
Definition at line 15 of file plpy_procedure.h.
|
extern |
Definition at line 362 of file plpy_procedure.c.
References PLyProcedure::code, elog, ERROR, fb(), PLyProcedure::globals, PLyProcedure::mcxt, MemoryContextStrdup(), NAMEDATALEN, pfree(), PLy_elog, PLy_interp_globals, PLy_procedure_munge_source(), PLyProcedure::proname, PLyProcedure::pyname, snprintf, PLyProcedure::src, and PLyProcedure::statics.
Referenced by plpython3_inline_handler(), and PLy_procedure_create().
|
extern |
Definition at line 416 of file plpy_procedure.c.
References PLyProcedure::code, fb(), PLyProcedure::globals, PLyProcedure::mcxt, MemoryContextDelete(), and PLyProcedure::statics.
Referenced by plpython3_inline_handler(), PLy_delete_callback(), and PLy_procedure_create().
|
extern |
Definition at line 62 of file plpy_procedure.c.
References Assert, cached_function_compile(), PLyProcedure::cfunc, fb(), FunctionCallInfoBaseData::flinfo, FmgrInfo::fn_extra, FmgrInfo::fn_mcxt, MemoryContextAllocZero(), MemoryContextRegisterResetCallback(), PLy_compile_callback(), PLy_delete_callback(), RemovePLyProcedureCache(), and CachedFunction::use_count.
Referenced by plpython3_call_handler(), and plpython3_validator().
|
extern |
Definition at line 43 of file plpy_procedure.c.
References fb(), and PLyProcedure::proname.
Referenced by plpython_error_callback(), and PLy_traceback().