PostgreSQL Source Code
git master
|
#include <elog.h>
Data Fields | |
int | elevel |
bool | output_to_server |
bool | output_to_client |
bool | hide_stmt |
bool | hide_ctx |
const char * | filename |
int | lineno |
const char * | funcname |
const char * | domain |
const char * | context_domain |
int | sqlerrcode |
char * | message |
char * | detail |
char * | detail_log |
char * | hint |
char * | context |
char * | backtrace |
const char * | message_id |
char * | schema_name |
char * | table_name |
char * | column_name |
char * | datatype_name |
char * | constraint_name |
int | cursorpos |
int | internalpos |
char * | internalquery |
int | saved_errno |
struct MemoryContextData * | assoc_context |
struct MemoryContextData* ErrorData::assoc_context |
Definition at line 458 of file elog.h.
Referenced by CopyErrorData(), EmitErrorReport(), err_generic_string(), errbacktrace(), errcontext_msg(), errdetail(), errdetail_internal(), errdetail_log(), errdetail_log_plural(), errdetail_plural(), errhint(), errhint_plural(), errmsg(), errmsg_internal(), errmsg_plural(), errsave_start(), errstart(), GetErrorContextStack(), internalerrquery(), pq_parse_errornotice(), ReThrowError(), and ThrowErrorData().
char* ErrorData::backtrace |
Definition at line 445 of file elog.h.
Referenced by CopyErrorData(), errfinish(), FreeErrorDataContents(), ReThrowError(), send_message_to_server_log(), set_backtrace(), and ThrowErrorData().
char* ErrorData::column_name |
Definition at line 449 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), exec_stmt_getdiag(), FreeErrorDataContents(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().
char* ErrorData::constraint_name |
Definition at line 451 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), exec_stmt_getdiag(), FreeErrorDataContents(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().
char* ErrorData::context |
Definition at line 444 of file elog.h.
Referenced by CopyErrorData(), exec_stmt_getdiag(), FreeErrorDataContents(), GetErrorContextStack(), HandleParallelApplyMessage(), HandleParallelMessage(), pltcl_construct_errorCode(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::context_domain |
Definition at line 438 of file elog.h.
Referenced by CopyErrorData(), errcontext_msg(), set_errcontext_domain(), and set_stack_entry_domain().
int ErrorData::cursorpos |
Definition at line 452 of file elog.h.
Referenced by errposition(), geterrposition(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::datatype_name |
Definition at line 450 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), exec_stmt_getdiag(), FreeErrorDataContents(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().
char* ErrorData::detail |
Definition at line 441 of file elog.h.
Referenced by CopyErrorData(), exec_stmt_getdiag(), FreeErrorDataContents(), pg_input_error_info(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::detail_log |
Definition at line 442 of file elog.h.
Referenced by CopyErrorData(), FreeErrorDataContents(), ReThrowError(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::domain |
Definition at line 437 of file elog.h.
Referenced by CopyErrorData(), errdetail(), errdetail_internal(), errdetail_log(), errdetail_log_plural(), errdetail_plural(), errhint(), errhint_plural(), errmsg(), errmsg_internal(), errmsg_plural(), format_elog_string(), set_stack_entry_domain(), and ThrowErrorData().
int ErrorData::elevel |
Definition at line 429 of file elog.h.
Referenced by check_log_of_query(), errfinish(), errsave_finish(), errsave_start(), errstart(), geterrlevel(), HandleParallelMessage(), pg_re_throw(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), text_to_stavalues(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::filename |
Definition at line 434 of file elog.h.
Referenced by CopyErrorData(), pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), set_stack_entry_location(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::funcname |
Definition at line 436 of file elog.h.
Referenced by CopyErrorData(), errfinish(), pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), set_stack_entry_location(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
bool ErrorData::hide_ctx |
Definition at line 433 of file elog.h.
Referenced by errhidecontext(), send_message_to_server_log(), write_csvlog(), and write_jsonlog().
bool ErrorData::hide_stmt |
Definition at line 432 of file elog.h.
Referenced by check_log_of_query(), and errhidestmt().
char* ErrorData::hint |
Definition at line 443 of file elog.h.
Referenced by CopyErrorData(), exec_stmt_getdiag(), FreeErrorDataContents(), pg_input_error_info(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
int ErrorData::internalpos |
Definition at line 453 of file elog.h.
Referenced by getinternalerrposition(), internalerrposition(), pltcl_construct_errorCode(), PLy_spi_exception_set(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::internalquery |
Definition at line 454 of file elog.h.
Referenced by CopyErrorData(), FreeErrorDataContents(), internalerrquery(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
int ErrorData::lineno |
Definition at line 435 of file elog.h.
Referenced by pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), set_stack_entry_location(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::message |
Definition at line 440 of file elog.h.
Referenced by CopyErrorData(), exec_stmt_block(), exec_stmt_getdiag(), ExecEvalJsonCoercionFinish(), format_elog_string(), FreeErrorDataContents(), pg_input_error_info(), plperl_return_next(), plperl_spi_commit(), plperl_spi_exec(), plperl_spi_exec_prepared(), plperl_spi_fetchrow(), plperl_spi_prepare(), plperl_spi_query(), plperl_spi_query_prepared(), plperl_spi_rollback(), plperl_util_elog(), pltcl_commit(), pltcl_construct_errorCode(), pltcl_elog(), pltcl_rollback(), pltcl_subtrans_abort(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::message_id |
Definition at line 446 of file elog.h.
Referenced by CopyErrorData(), errmsg(), errmsg_internal(), errmsg_plural(), and format_elog_string().
bool ErrorData::output_to_client |
Definition at line 431 of file elog.h.
Referenced by EmitErrorReport(), errstart(), and pg_re_throw().
bool ErrorData::output_to_server |
Definition at line 430 of file elog.h.
Referenced by EmitErrorReport(), errstart(), and pg_re_throw().
int ErrorData::saved_errno |
Definition at line 455 of file elog.h.
Referenced by errcode_for_file_access(), errcode_for_socket_access(), format_elog_string(), and get_error_stack_entry().
char* ErrorData::schema_name |
Definition at line 447 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), exec_stmt_getdiag(), FreeErrorDataContents(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().
int ErrorData::sqlerrcode |
Definition at line 439 of file elog.h.
Referenced by errcode(), errcode_for_file_access(), errcode_for_socket_access(), errsave_start(), errstart(), exception_matches_conditions(), exec_stmt_block(), exec_stmt_getdiag(), GetConnection(), geterrcode(), initTrie(), log_status_format(), pg_input_error_info(), pltcl_construct_errorCode(), PLy_commit(), PLy_exception_set_with_details(), PLy_rollback(), PLy_spi_exception_set(), PLy_spi_subtransaction_abort(), pq_parse_errornotice(), ReorderBufferProcessTXN(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::table_name |
Definition at line 448 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), exec_stmt_getdiag(), FreeErrorDataContents(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().