Re: Slightly better testing for pg_ctl(1)'s -w... - Mailing list pgsql-patches

From Sean Chittenden
Subject Re: Slightly better testing for pg_ctl(1)'s -w...
Date
Msg-id 0CFE14AB-1BB8-11D9-BCB2-000A95C705DC@speakeasy.net
Whole thread Raw
In response to Re: Slightly better testing for pg_ctl(1)'s -w...  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Slightly better testing for pg_ctl(1)'s -w...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
>>> ... it should have a SQLSTATE assigned, so you could
>>> check for ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION ...
>
>> Ok, I've read over the code a little bit... it doesn't seem like
>> there's an obvious way to get the error code via libpq(3).
>
> Hmmm ... I was thinking of PQresultErrorField, but you don't actually
> get a PGresult from a connection failure, so that's no good :-(.
>
> I suppose we need to think about extending libpq so that a SQLSTATE
> can be retrieved for connection-level failures.  That kinda moves
> it out of the realm of bug-fix-for-beta though.

Whew, glad it wasn't me.  Could we (ie Bruce) add getting the raw
errcode as an 8.1 TODO item?  In the mean time, are you going to commit
the pg_ctl patch?  -sc

--
Sean Chittenden


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: plperl features
Next
From: Bruce Momjian
Date:
Subject: Re: plperl features