Re: Slightly better testing for pg_ctl(1)'s -w...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Chittenden <chitt(at)speakeasy(dot)net>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Slightly better testing for pg_ctl(1)'s -w...
Date: 2004-10-11 18:56:30
Message-ID: 21177.1097520990@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Sean Chittenden <chitt(at)speakeasy(dot)net> writes:
>> ... 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.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2004-10-11 18:59:01 Re: plperl features
Previous Message Joshua D. Drake 2004-10-11 18:49:20 Re: plperl features