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

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to determine failed connection attempt due to invalid authorization (libpq)?
Date: 2010-10-17 06:03:28
Message-ID: AANLkTim_t6UQjCUM8yEYU=JMpEibsNFVBsZDc4xg5ZUq@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com>

> On Thu, Oct 14, 2010 at 2:59 PM, Dmitriy Igrishin <dmitigr(at)gmail(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2010-10-17 09:30:27 Re: WIP: extensible enums
Previous Message Brendan Jurd 2010-10-17 04:54:08 Re: Keywords in pg_hba.conf should be field-specific