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 386 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(), errstart(), GetErrorContextStack(), internalerrquery(), pq_parse_errornotice(), ReThrowError(), and ThrowErrorData().
char* ErrorData::backtrace |
Definition at line 373 of file elog.h.
Referenced by CopyErrorData(), errfinish(), FreeErrorData(), ReThrowError(), send_message_to_server_log(), set_backtrace(), and ThrowErrorData().
char* ErrorData::column_name |
Definition at line 377 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 379 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 372 of file elog.h.
Referenced by CopyErrorData(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), GetErrorContextStack(), 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 366 of file elog.h.
Referenced by errcontext_msg(), errstart(), and set_errcontext_domain().
int ErrorData::cursorpos |
Definition at line 380 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 378 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 369 of file elog.h.
Referenced by CopyErrorData(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 370 of file elog.h.
Referenced by CopyErrorData(), errfinish(), FreeErrorData(), ReThrowError(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::domain |
Definition at line 365 of file elog.h.
Referenced by errdetail(), errdetail_internal(), errdetail_log(), errdetail_log_plural(), errdetail_plural(), errhint(), errhint_plural(), errmsg(), errmsg_internal(), errmsg_plural(), errstart(), format_elog_string(), and ThrowErrorData().
int ErrorData::elevel |
Definition at line 357 of file elog.h.
Referenced by check_log_of_query(), errfinish(), errstart(), HandleParallelMessage(), pg_re_throw(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::filename |
Definition at line 362 of file elog.h.
Referenced by errfinish(), pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
const char* ErrorData::funcname |
Definition at line 364 of file elog.h.
Referenced by errfinish(), pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
bool ErrorData::hide_ctx |
Definition at line 361 of file elog.h.
Referenced by errhidecontext(), send_message_to_server_log(), write_csvlog(), and write_jsonlog().
bool ErrorData::hide_stmt |
Definition at line 360 of file elog.h.
Referenced by check_log_of_query(), and errhidestmt().
char* ErrorData::hint |
Definition at line 371 of file elog.h.
Referenced by CopyErrorData(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 381 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 382 of file elog.h.
Referenced by CopyErrorData(), errfinish(), FreeErrorData(), 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 363 of file elog.h.
Referenced by errfinish(), pg_re_throw(), pltcl_construct_errorCode(), pq_parse_errornotice(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().
char* ErrorData::message |
Definition at line 368 of file elog.h.
Referenced by CopyErrorData(), errfinish(), exec_stmt_block(), exec_stmt_getdiag(), format_elog_string(), FreeErrorData(), 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 374 of file elog.h.
Referenced by errmsg(), errmsg_internal(), errmsg_plural(), and format_elog_string().
bool ErrorData::output_to_client |
Definition at line 359 of file elog.h.
Referenced by EmitErrorReport(), errstart(), and pg_re_throw().
bool ErrorData::output_to_server |
Definition at line 358 of file elog.h.
Referenced by EmitErrorReport(), errstart(), and pg_re_throw().
int ErrorData::saved_errno |
Definition at line 383 of file elog.h.
Referenced by errcode_for_file_access(), errcode_for_socket_access(), errstart(), and format_elog_string().
char* ErrorData::schema_name |
Definition at line 375 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), 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 367 of file elog.h.
Referenced by errcode(), errcode_for_file_access(), errcode_for_socket_access(), errstart(), exception_matches_conditions(), exec_stmt_block(), exec_stmt_getdiag(), ExecEvalJsonExprSubtrans(), GetConnection(), geterrcode(), initTrie(), log_line_prefix(), 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(), write_jsonlog(), and xml_is_document().
char* ErrorData::table_name |
Definition at line 376 of file elog.h.
Referenced by CopyErrorData(), err_generic_string(), errfinish(), exec_stmt_getdiag(), FreeErrorData(), pltcl_construct_errorCode(), PLy_exception_set_with_details(), PLy_spi_exception_set(), pq_parse_errornotice(), ReThrowError(), send_message_to_frontend(), and ThrowErrorData().