#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.
Definition at line 435 of file plpy_elog.c.
References next, pnstrdup(), and pstrdup().
Referenced by PLy_traceback().
Definition at line 567 of file plpy_elog.c.
References PLyUnicode_AsString(), pstrdup(), str, and val.
Referenced by PLy_get_error_data().
Definition at line 44 of file plpy_elog.c.
References appendStringInfoVA(), StringInfoData::data, dgettext, enlargeStringInfo(), ereport, err_generic_string(), errcode(), errcontext, errdetail_internal(), errhint(), errmsg_internal(), FATAL, 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 477 of file plpy_elog.c.
References buf, dgettext, 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().
Definition at line 491 of file plpy_elog.c.
References buf, dngettext, TEXTDOMAIN, and vsnprintf.
Referenced by PLy_cursor_plan(), and PLy_spi_execute_plan().
Definition at line 509 of file plpy_elog.c.
References generate_unaccent_rules::args, ErrorData::column_name, ErrorData::constraint_name, ErrorData::datatype_name, ErrorData::detail, elog, ERROR, error(), ErrorData::hint, ErrorData::internalquery, ErrorData::message, ErrorData::schema_name, set_string_attr(), ErrorData::sqlerrcode, ErrorData::table_name, and unpack_sql_state().
Referenced by PLy_output().
Definition at line 417 of file plpy_elog.c.
References get_string_attr(), and PLy_get_sqlerrcode().
Referenced by PLy_elog_impl().
Definition at line 381 of file plpy_elog.c.
References PLy_get_sqlerrcode().
Referenced by PLy_elog_impl().
Definition at line 357 of file plpy_elog.c.
References MAKE_SQLSTATE, and PLyUnicode_AsString().
Referenced by PLy_get_error_data(), and PLy_get_spi_error_data().
Definition at line 173 of file plpy_elog.c.
References appendStringInfo(), appendStringInfoString(), PLyExecutionContext::curr_proc, StringInfoData::data, elog, ERROR, filename, get_source_line(), initStringInfo(), name, pfree(), PG_END_TRY, PG_FINALLY, PG_TRY, PLy_current_execution_context(), PLy_procedure_name(), PLyUnicode_AsString(), proname, and PLyProcedure::src.
Referenced by PLy_elog_impl().
Definition at line 583 of file plpy_elog.c.
References 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().