Hello, In section "34.2. Connection Status Functions" it is said that, "Nearly all libpq functions will set a message for PQerrorMessage if they fail."
The wording "Nearly all" is somewhat fuzzy. I read it in such a way that SOME libpq functions will NOT set a message for PQerrorMessage if they fail. But which functions? I didn't find any further information in the documentation, except that for some functions it's explicitly documented that they set an error message. In particular, it doesn't seem to be documented which of the following functions set a message for PQerrorMessage: * PQsetnonblocking * PQflush (for the case when -1 and the case when 1 is returned) * PQenterPipelineMode * PQpipelineSync * PQsendFlushRequest * PQcancel * PQclientEncoding * PQsetClientEncoding (and probably more) Kind Regards Jan Behrens