Passed to pg_result_error_field().
The severity; the field contents are ERROR,
FATAL, or PANIC (in an error message), or
WARNING, NOTICE, DEBUG,
INFO, or LOG (in a notice message), or a localized
translation of one of these. Always present.
Passed to pg_result_error_field().
The SQLSTATE code for the error. The SQLSTATE code identifies the type of error
that has occurred; it can be used by front-end applications to perform specific
operations (such as error handling) in response to a particular database error.
This field is not localizable, and is always present.
Passed to pg_result_error_field().
Hint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it
offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines.
Passed to pg_result_error_field().
A string containing a decimal integer indicating an error cursor position as an index into the original
statement string. The first character has index 1, and positions are measured in characters not bytes.
Passed to pg_result_error_field().
This is defined the same as the PG_DIAG_STATEMENT_POSITION field, but
it is used when the cursor position refers to an internally generated
command rather than the one submitted by the client. The
PG_DIAG_INTERNAL_QUERY field will always appear when this
field appears.
Passed to pg_result_error_field().
The text of a failed internally-generated command. This could be, for example, a
SQL query issued by a PL/pgSQL function.
Passed to pg_result_error_field().
An indication of the context in which the error occurred. Presently
this includes a call stack traceback of active procedural language
functions and internally-generated queries. The trace is one entry
per line, most recent first.
Passed to pg_set_error_verbosity().
Specified that returned messages include severity, primary text,
and position only; this will normally fit on a single line.
Passed to pg_set_error_verbosity().
The default mode produces messages that include the above
plus any detail, hint, or context fields (these may span
multiple lines).