|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "lib/stringinfo.h"#include "plpy_elog.h"#include "plpy_main.h"#include "plpy_procedure.h"#include "plpy_util.h"
Go to the source code of this file.
Variables | |
| PyObject * | PLy_exc_error = NULL |
| PyObject * | PLy_exc_fatal = NULL |
| PyObject * | PLy_exc_spi_error = NULL |
Definition at line 448 of file plpy_elog.c.
References fb(), next, pnstrdup(), and pstrdup().
Referenced by PLy_traceback().
Definition at line 580 of file plpy_elog.c.
References fb(), PLyUnicode_AsString(), str, and val.
Referenced by PLy_get_error_data().
Definition at line 44 of file plpy_elog.c.
References appendStringInfoVA(), dgettext, enlargeStringInfo(), ereport, err_generic_string(), errcode(), errcontext, errdetail_internal(), errhint(), errmsg_internal(), FATAL, fb(), initStringInfo(), internalerrposition(), internalerrquery(), pfree(), PG_DIAG_COLUMN_NAME, PG_DIAG_CONSTRAINT_NAME, PG_DIAG_DATATYPE_NAME, PG_DIAG_SCHEMA_NAME, PG_DIAG_TABLE_NAME, PG_END_TRY, PG_FINALLY, PG_TRY, PLy_exc_error, PLy_exc_fatal, PLy_exc_spi_error, PLy_get_error_data(), PLy_get_spi_error_data(), PLy_traceback(), TEXTDOMAIN, and val.
Referenced by _PG_init().
Definition at line 490 of file plpy_elog.c.
References buf, dgettext, fb(), TEXTDOMAIN, and vsnprintf.
Referenced by PLy_cursor(), PLy_cursor_close(), PLy_cursor_fetch(), PLy_cursor_iternext(), PLy_cursor_plan(), PLy_output(), PLy_result_colnames(), PLy_result_coltypes(), PLy_result_coltypmods(), PLy_spi_execute(), PLy_spi_execute_plan(), PLy_spi_execute_query(), PLy_spi_prepare(), PLy_subtransaction_enter(), and PLy_subtransaction_exit().
| void PLy_exception_set_plural | ( | PyObject * | exc, |
| const char * | fmt_singular, | ||
| const char * | fmt_plural, | ||
| unsigned long | n, | ||
| ... | |||
| ) |
Definition at line 504 of file plpy_elog.c.
References buf, dngettext, fb(), TEXTDOMAIN, and vsnprintf.
Referenced by PLy_cursor_plan(), and PLy_spi_execute_plan().
Definition at line 522 of file plpy_elog.c.
References elog, ERROR, error(), fb(), set_string_attr(), and unpack_sql_state().
Referenced by PLy_output().
|
static |
Definition at line 430 of file plpy_elog.c.
References get_string_attr(), and PLy_get_sqlerrcode().
Referenced by PLy_elog_impl().
|
static |
Definition at line 389 of file plpy_elog.c.
References fb(), and PLy_get_sqlerrcode().
Referenced by PLy_elog_impl().
Definition at line 361 of file plpy_elog.c.
References fb(), MAKE_SQLSTATE, and PLyUnicode_AsString().
Referenced by PLy_get_error_data(), and PLy_get_spi_error_data().
|
static |
Definition at line 166 of file plpy_elog.c.
References appendStringInfo(), appendStringInfoString(), elog, ERROR, fb(), filename, get_source_line(), initStringInfo(), name, pfree(), PG_END_TRY, PG_FINALLY, PG_TRY, PLy_current_execution_context(), PLy_procedure_name(), PLyUnicode_AsString(), and proname.
Referenced by PLy_elog_impl().
Definition at line 596 of file plpy_elog.c.
References fb(), PLyUnicode_FromString(), str, and val.
Referenced by PLy_exception_set_with_details().
Definition at line 15 of file plpy_elog.c.
Referenced by PLy_add_exceptions(), PLy_cursor(), PLy_elog_impl(), PLy_output(), PLy_result_colnames(), PLy_result_coltypes(), PLy_result_coltypmods(), and PLy_spi_execute().
Definition at line 16 of file plpy_elog.c.
Referenced by PLy_add_exceptions(), and PLy_elog_impl().
Definition at line 17 of file plpy_elog.c.
Referenced by PLy_add_exceptions(), PLy_commit(), PLy_elog_impl(), PLy_rollback(), PLy_spi_execute_plan(), PLy_spi_execute_query(), and PLy_spi_subtransaction_abort().