Re: How to determine failed connection attempt due to invalid authorization (libpq)?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: How to determine failed connection attempt due to invalid authorization (libpq)?
Дата
Msg-id AANLkTimMKrbjVMT03AfdDzUYc-MQ1eW+CQBK1vxuVEq6@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to determine failed connection attempt due to invalid authorization (libpq)?  (Dmitriy Igrishin <dmitigr@gmail.com>)
Ответы Re: How to determine failed connection attempt due to invalid authorization (libpq)?  (David Fetter <david@fetter.org>)
Список pgsql-hackers
On Sun, Oct 17, 2010 at 2:03 AM, Dmitriy Igrishin <dmitigr@gmail.com> wrote:
> I've asked pgsql-general.
> Unfortunately it seems that there is no better way to do it except
> parsing PQerrorMessage(). Sadly.

Yeah, doesn't look like it.  A quick glance at the code reveals that a
PGresult can store individual error fields but a PGconn can store only
a message.   :-(

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: ask for review of MERGE
Следующее
От: David Fetter
Дата:
Сообщение: Re: How to determine failed connection attempt due to invalid authorization (libpq)?