Re: PQconnectdb et.all.

Поиск
Список
Период
Сортировка
От Milen Dzhumerov
Тема Re: PQconnectdb et.all.
Дата
Msg-id 4433D44E.9040005@1nsp1r3d.co.uk
обсуждение исходный текст
Ответ на PQconnectdb et.all.  (Danny Braniss <danny@cs.huji.ac.il>)
Список pgsql-interfaces
Danny Braniss wrote:
> How 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
>
>   
Just determine the SQLState from the last operation and use this table 
http://www.postgresql.org/docs/8.1/static/errcodes-appendix.html

Regards,
gamehack


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Andy Chambers
Дата:
Сообщение: Re: PQconnectdb et.all.
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: DBD::Pg version 1.48 released