|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "mb/pg_wchar.h"#include "plpy_cursorobject.h"#include "plpy_elog.h"#include "plpy_planobject.h"#include "plpy_plpymodule.h"#include "plpy_resultobject.h"#include "plpy_spi.h"#include "plpy_subxactobject.h"#include "plpy_util.h"#include "utils/builtins.h"#include "spiexceptions.h"
Go to the source code of this file.
Data Structures | |
| struct | ExceptionMap |
Typedefs | |
| typedef struct ExceptionMap | ExceptionMap |
Definition at line 348 of file plpy_plpymodule.c.
References fb(), PLyUnicode_AsString(), and str.
Referenced by PLy_output().
Definition at line 145 of file plpy_plpymodule.c.
References ERROR, fb(), HASH_BLOBS, hash_create(), HASH_ELEM, PLy_create_exception(), PLy_elog, PLy_exc_error, PLy_exc_fatal, PLy_exc_module, PLy_exc_spi_error, PLy_generate_spi_exceptions(), and PLy_spi_exceptions.
Referenced by PyInit_plpy().
|
static |
Definition at line 181 of file plpy_plpymodule.c.
References ERROR, fb(), name, and PLy_elog.
Referenced by PLy_add_exceptions(), and PLy_generate_spi_exceptions().
Definition at line 252 of file plpy_plpymodule.c.
References DEBUG2, fb(), and PLy_output().
Definition at line 282 of file plpy_plpymodule.c.
References ERROR, fb(), and PLy_output().
Definition at line 288 of file plpy_plpymodule.c.
References FATAL, fb(), and PLy_output().
Definition at line 211 of file plpy_plpymodule.c.
References Assert, ERROR, PLyExceptionEntry::exc, exception_map, fb(), HASH_ENTER, hash_search(), i, name, ExceptionMap::name, PLy_create_exception(), PLy_elog, PLy_spi_exceptions, PLyUnicode_FromString(), and unpack_sql_state().
Referenced by PLy_add_exceptions().
Definition at line 264 of file plpy_plpymodule.c.
References fb(), INFO, and PLy_output().
Definition at line 258 of file plpy_plpymodule.c.
References fb(), LOG, and PLy_output().
Definition at line 270 of file plpy_plpymodule.c.
References fb(), NOTICE, and PLy_output().
|
static |
Definition at line 369 of file plpy_plpymodule.c.
References CopyErrorData(), CurrentMemoryContext, dgettext, ereport, err_generic_string(), errcode(), errdetail_internal(), errhint(), errmsg_internal(), ERROR, fb(), FlushErrorState(), FreeErrorData(), MAKE_SQLSTATE, MemoryContextSwitchTo(), object_to_string(), pfree(), PG_CATCH, PG_DIAG_COLUMN_NAME, PG_DIAG_CONSTRAINT_NAME, PG_DIAG_DATATYPE_NAME, PG_DIAG_SCHEMA_NAME, PG_DIAG_TABLE_NAME, PG_END_TRY, PG_TRY, pg_verifymbstr(), PLy_elog, PLy_exc_error, PLy_exception_set(), PLy_exception_set_with_details(), PLyUnicode_AsString(), pstrdup(), TEXTDOMAIN, and value.
Referenced by PLy_debug(), PLy_error(), PLy_fatal(), PLy_info(), PLy_log(), PLy_notice(), and PLy_warning().
Definition at line 331 of file plpy_plpymodule.c.
References fb(), PLyUnicode_FromString(), quote_identifier(), and str.
Definition at line 294 of file plpy_plpymodule.c.
References fb(), pfree(), PLyUnicode_FromString(), quote_literal_cstr(), and str.
Definition at line 311 of file plpy_plpymodule.c.
References fb(), pfree(), PLyUnicode_FromString(), quote_literal_cstr(), and str.
Definition at line 276 of file plpy_plpymodule.c.
References fb(), PLy_output(), and WARNING.
| PyMODINIT_FUNC PyInit_plpy | ( | void | ) |
Definition at line 126 of file plpy_plpymodule.c.
References fb(), PLy_add_exceptions(), PLy_cursor_init_type(), PLy_module, PLy_plan_init_type(), PLy_result_init_type(), and PLy_subtransaction_init_type().
Referenced by _PG_init().
|
static |
Definition at line 50 of file plpy_plpymodule.c.
Referenced by PLy_generate_spi_exceptions().
|
static |
|
static |
Definition at line 114 of file plpy_plpymodule.c.
Referenced by PLy_add_exceptions().
|
static |
Definition at line 55 of file plpy_plpymodule.c.
|
static |
Definition at line 107 of file plpy_plpymodule.c.
Referenced by PyInit_plpy().
Definition at line 20 of file plpy_plpymodule.c.
Referenced by PLy_add_exceptions(), PLy_commit(), PLy_generate_spi_exceptions(), PLy_rollback(), and PLy_spi_subtransaction_abort().