Re: meaning of PQresultStatus types - Mailing list pgsql-general

From Tom Lane
Subject Re: meaning of PQresultStatus types
Date
Msg-id 806.1148498042@sss.pgh.pa.us
Whole thread Raw
In response to meaning of PQresultStatus types  (jois.de.vivre@gmail.com)
List pgsql-general
jois.de.vivre@gmail.com writes:
> My question is, what constitutes a PGRES_FATAL_ERROR or a
> PGRES_BAD_RESPONSE?

FATAL is probably a bad choice of words here; it basically means any
error condition reported by the server that caused execution of your
query to be abandoned.  NONFATAL_ERROR actually means "notice or
warning message", and isn't a possible return code from PQexec anyway.

I think BAD_RESPONSE is historical at the moment; I don't see it being
generated anywhere in the library.

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Clearing out old idle connections
Next
From: Tom Lane
Date:
Subject: Re: PK with an expression in field list