Danny Braniss wrote:
Just determine the SQLState from the last operation and use this table http://www.postgresql.org/docs/8.1/static/errcodes-appendix.htmlHow can I programatically figure out why PQconnectdb failed? The reason for this is that my daemon needs to know:1- if to try and reconnect (for example, if it's timing out) 2- abandom, if for example it has not permition.thanks, danny ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend
Regards, gamehack