I seem to be missing an equivalent of PQresultErrorField() that operates on a PGconn object (like PQerrorMessage() does). This would be useful to detect errors that occur outside of a statement execution.
(One particular case I'm looking at is the message "fe_sendauth: no password supplied", which clients look at to detect if they need to send a password.) -- Peter Eisentraut [EMAIL PROTECTED] ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match