CONNECTION_OK |
= |
INT2FIX(CONNECTION_OK) |
|
Connection succeeded
|
CONNECTION_BAD |
= |
INT2FIX(CONNECTION_BAD) |
|
Connection failed
|
CONNECTION_STARTED |
= |
INT2FIX(CONNECTION_STARTED) |
|
Waiting for connection to be made.
|
CONNECTION_MADE |
= |
INT2FIX(CONNECTION_MADE) |
|
Connection OK; waiting to send.
|
CONNECTION_AWAITING_RESPONSE |
= |
INT2FIX(CONNECTION_AWAITING_RESPONSE) |
|
Waiting for a response from the server.
|
CONNECTION_AUTH_OK |
= |
INT2FIX(CONNECTION_AUTH_OK) |
|
Received authentication; waiting for backend start-up to finish.
|
CONNECTION_SSL_STARTUP |
= |
INT2FIX(CONNECTION_SSL_STARTUP) |
|
Negotiating SSL encryption.
|
CONNECTION_SETENV |
= |
INT2FIX(CONNECTION_SETENV) |
|
Negotiating environment-driven parameter settings.
|
PGRES_POLLING_READING |
= |
INT2FIX(PGRES_POLLING_READING) |
|
Async connection is waiting to read
|
PGRES_POLLING_WRITING |
= |
INT2FIX(PGRES_POLLING_WRITING) |
|
Async connection is waiting to write
|
PGRES_POLLING_FAILED |
= |
INT2FIX(PGRES_POLLING_FAILED) |
|
Async connection failed or was reset
|
PGRES_POLLING_OK |
= |
INT2FIX(PGRES_POLLING_OK) |
|
Async connection succeeded
|
PQTRANS_IDLE |
= |
INT2FIX(PQTRANS_IDLE) |
|
Transaction is currently idle (transaction_status)
|
PQTRANS_ACTIVE |
= |
INT2FIX(PQTRANS_ACTIVE) |
|
Transaction is currently active; query has been sent to the server, but not
yet completed. (transaction_status)
|
PQTRANS_INTRANS |
= |
INT2FIX(PQTRANS_INTRANS) |
|
Transaction is currently idle, in a valid transaction block
(transaction_status)
|
PQTRANS_INERROR |
= |
INT2FIX(PQTRANS_INERROR) |
|
Transaction is currently idle, in a failed transaction block
(transaction_status)
|
PQTRANS_UNKNOWN |
= |
INT2FIX(PQTRANS_UNKNOWN) |
|
Transaction‘s connection is bad (transaction_status)
|
PQERRORS_TERSE |
= |
INT2FIX(PQERRORS_TERSE) |
|
Terse error verbosity level (set_error_verbosity)
|
PQERRORS_DEFAULT |
= |
INT2FIX(PQERRORS_DEFAULT) |
|
Default error verbosity level (set_error_verbosity)
|
PQERRORS_VERBOSE |
= |
INT2FIX(PQERRORS_VERBOSE) |
|
Verbose error verbosity level (set_error_verbosity)
|
INV_WRITE |
= |
INT2FIX(INV_WRITE) |
|
Flag for lo_creat, lo_open — open for writing
|
INV_READ |
= |
INT2FIX(INV_READ) |
|
Flag for lo_creat, lo_open — open for reading
|
SEEK_SET |
= |
INT2FIX(SEEK_SET) |
|
Flag for lo_lseek — seek from object start
|
SEEK_CUR |
= |
INT2FIX(SEEK_CUR) |
|
Flag for lo_lseek — seek from current position
|
SEEK_END |
= |
INT2FIX(SEEK_END) |
|
Flag for lo_lseek — seek from object end
|
PGRES_EMPTY_QUERY |
= |
#result_status constant |
|
The string sent to the server was empty.
|
PGRES_COMMAND_OK |
= |
#result_status constant |
|
Successful completion of a command returning no data.
|
PGRES_TUPLES_OK |
= |
#result_status constant |
|
Successful completion of a command returning data
(such as a SELECT or SHOW).
|
PGRES_COPY_OUT |
= |
#result_status constant |
|
Copy Out (from server) data transfer started.
|
PGRES_COPY_IN |
= |
#result_status constant |
|
Copy In (to server) data transfer started.
|
PGRES_BAD_RESPONSE |
= |
#result_status constant |
|
The server’s response was not understood.
|
PGRES_NONFATAL_ERROR |
= |
#result_status constant |
|
A nonfatal error (a notice or warning) occurred.
|
PGRES_FATAL_ERROR |
= |
#result_status constant |
|
A fatal error occurred.
|
PG_DIAG_SEVERITY |
= |
#result_error_field argument constant |
|
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.
|
PG_DIAG_SQLSTATE |
= |
#result_error_field argument constant |
|
The SQLSTATE code for the error. The SQLSTATE code identies the type of
error that has occurred; it can be used by front-end applications to
perform specic operations (such as er- ror handling) in response to a
particular database error. For a list of the possible SQLSTATE codes, see
Appendix A. This eld is not localizable, and is always present.
|
PG_DIAG_MESSAGE_PRIMARY |
= |
#result_error_field argument constant |
|
The primary human-readable error message (typically one line). Always
present.
|
PG_DIAG_MESSAGE_DETAIL |
= |
#result_error_field argument constant: Detail |
|
an optional secondary error message carrying more detail about the problem.
Might run to multiple lines.
|
PG_DIAG_MESSAGE_HINT |
= |
#result_error_field argument constant: 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. Might run to multiple lines.
|
PG_DIAG_STATEMENT_POSITION |
= |
#result_error_field argument constant |
|
A string containing a decimal integer indicating an error cursor position
as an index into the original statement string. The rst character has index
1, and positions are measured in characters not bytes.
|
PG_DIAG_INTERNAL_POSITION |
= |
#result_error_field argument constant |
|
This is dened the same as the PG_DIAG_STATEMENT_POSITION eld, 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 eld
will always appear when this eld appears.
|
PG_DIAG_INTERNAL_QUERY |
= |
#result_error_field argument constant |
|
The text of a failed internally-generated command. This could be, for
example, a SQL query issued by a PL/pgSQL function.
|
PG_DIAG_CONTEXT |
= |
#result_error_field argument constant |
|
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
rst.
|
PG_DIAG_SOURCE_FILE |
= |
#result_error_field argument constant |
|
The le name of the source-code location where the error was reported.
|
PG_DIAG_SOURCE_LINE |
= |
#result_error_field argument constant |
|
The line number of the source-code location where the error was reported.
|
PG_DIAG_SOURCE_FUNCTION |
= |
#result_error_field argument constant |
|
The name of the source-code function reporting the error.
|
INVALID_OID |
= |
INT2FIX(InvalidOid) |
|
Invalid OID constant
|
InvalidOid |
= |
INT2FIX(InvalidOid) |