PGSQL_TRANSACTION_INERROR (integer) Returned by pg_transaction_status(). The connection is idle, in a failed transaction block. PGSQL_TRANSACTION_UNKNOWN (integer) Returned by pg_transaction_status(). The connection is bad. PGSQL_DIAG_SEVERITY (integer) Passed to pg_result_error_field()....