PostgreSQL Source Code: ErrorData Struct Reference (original) (raw)

#include <[elog.h](elog%5F8h%5Fsource.html)>

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

Definition at line 418 of file elog.h.

assoc_context

Definition at line 449 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_internal(), errhint_plural(), errmsg(), errmsg_internal(), errmsg_plural(), errsave_start(), errstart(), GetErrorContextStack(), internalerrquery(), pq_parse_errornotice(), ReThrowError(), and ThrowErrorData().

backtrace

char* ErrorData::backtrace

column_name

char* ErrorData::column_name

Definition at line 440 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().

constraint_name

char* ErrorData::constraint_name

Definition at line 442 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().

context

Definition at line 435 of file elog.h.

Referenced by CopyErrorData(), exec_stmt_getdiag(), FreeErrorDataContents(), GetErrorContextStack(), pltcl_construct_errorCode(), pq_parse_errornotice(), ProcessParallelApplyMessage(), ProcessParallelMessage(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), ThrowErrorData(), write_csvlog(), and write_jsonlog().

context_domain

const char* ErrorData::context_domain

cursorpos

datatype_name

char* ErrorData::datatype_name

Definition at line 441 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().

detail

Definition at line 432 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().

detail_log

char* ErrorData::detail_log

domain

const char* ErrorData::domain

Definition at line 428 of file elog.h.

Referenced by CopyErrorData(), errdetail(), errdetail_internal(), errdetail_log(), errdetail_log_plural(), errdetail_plural(), errhint(), errhint_internal(), errhint_plural(), errmsg(), errmsg_internal(), errmsg_plural(), format_elog_string(), set_stack_entry_domain(), and ThrowErrorData().

elevel

Definition at line 420 of file elog.h.

Referenced by check_log_of_query(), errfinish(), errsave_finish(), errsave_start(), errstart(), pg_re_throw(), pq_parse_errornotice(), ProcessParallelMessage(), ReThrowError(), send_message_to_frontend(), send_message_to_server_log(), text_to_stavalues(), ThrowErrorData(), write_csvlog(), and write_jsonlog().

filename

const char* ErrorData::filename

funcname

const char* ErrorData::funcname

Definition at line 427 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().

hide_ctx

hide_stmt

bool ErrorData::hide_stmt

hint

Definition at line 434 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().

internalpos

int ErrorData::internalpos

internalquery

char* ErrorData::internalquery

Definition at line 445 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().

lineno

message

Definition at line 431 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().

message_id

const char* ErrorData::message_id

output_to_client

bool ErrorData::output_to_client

output_to_server

bool ErrorData::output_to_server

saved_errno

int ErrorData::saved_errno

schema_name

char* ErrorData::schema_name

Definition at line 438 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().

sqlerrcode

int ErrorData::sqlerrcode

Definition at line 430 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().

table_name

char* ErrorData::table_name

Definition at line 439 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().


The documentation for this struct was generated from the following file: