Re: How to determine failed connection attempt due to invalid authorization (libpq)? - Mailing list pgsql-hackers

From Dmitriy Igrishin
Subject Re: How to determine failed connection attempt due to invalid authorization (libpq)?
Date
Msg-id AANLkTim_t6UQjCUM8yEYU=JMpEibsNFVBsZDc4xg5ZUq@mail.gmail.com
Whole thread
In response to Re: How to determine failed connection attempt due to invalid authorization (libpq)?  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: How to determine failed connection attempt due to invalid authorization (libpq)?
List pgsql-hackers
Hey Robert,

I've asked pgsql-general.
Unfortunately it seems that there is no better way to do it except
parsing PQerrorMessage(). Sadly.


2010/10/17 Robert Haas <robertmhaas@gmail.com>
On Thu, Oct 14, 2010 at 2:59 PM, Dmitriy Igrishin <dmitigr@gmail.com> wrote:
> Is there way to determine failed connection attempt due to invalid
> authorization (libpq)?

I think this question would be more appropriate on pgsql-general.  I
suppose you would have to look at PQerrorMessage().

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



--
// Dmitriy.


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: Keywords in pg_hba.conf should be field-specific
Next
From: Dean Rasheed
Date:
Subject: Re: WIP: extensible enums