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

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: How to determine failed connection attempt due to invalid authorization (libpq)?
Дата
Msg-id 20101018142632.GA17337@fetter.org
обсуждение исходный текст
Ответ на Re: How to determine failed connection attempt due to invalid authorization (libpq)?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: How to determine failed connection attempt due to invalid authorization (libpq)?  (David Fetter <david@fetter.org>)
Список pgsql-hackers
On Mon, Oct 18, 2010 at 10:18:25AM -0400, Robert Haas wrote:
> On Mon, Oct 18, 2010 at 10:05 AM, David Fetter <david@fetter.org> wrote:
> > On Mon, Oct 18, 2010 at 10:03:55AM -0400, Robert Haas wrote:
> >> 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.   :-(
> >
> > Does this seem worth patching for 9.1?
> 
> Please feel free to submit a patch if you have an idea how to solve it.

Will look that over this evening and submit an idea for a patch :)

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: How to determine failed connection attempt due to invalid authorization (libpq)?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [GENERAL] column-level update privs + lock table