From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] default database creation with initdb |
Date: | 2005-06-20 22:43:51 |
Message-ID: | 42B746A7.5000409@pse-consulting.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
>
>>Tom Lane wrote:
>>
>>>If it's a server-side failure it should have a SQLSTATE code.
>
>
>>Specifically, I'm talking about
>
>
>>"no pg_hba.conf entry for ....",
>
>
> ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
>
>
>>"Ident authentication failed.." (both server sice)
>
>
> Ditto. Do you need to know the difference? What exactly would client
> code do differently for these two cases?
Display different hints how to cope with this. The hint will arise for
newbies, and it would be confusing to discuss ident auth when a missing
pg_hba.conf line is the problem, and vice versa.
>
>>and "Is the server running on host ..." from libpq
>
>
> libpq doesn't currently assign SQLSTATEs to internally detected errors
> ... someday someone should fix that.
Ok, I'm blind. Where in h**l do I find the SQLSTATE from a PGconn?!?
Regards,
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Victor Y. Yegorov | 2005-06-20 23:18:20 | make distclean keeps some files |
Previous Message | Simon Riggs | 2005-06-20 21:19:09 | Re: WAL bypass for CTAS |