Re: Test database for new installs? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Test database for new installs?
Date
Msg-id 200411191645.32915.peter_e@gmx.net
Whole thread Raw
In response to Re: Test database for new installs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Test database for new installs?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Am Freitag, 19. November 2004 15:59 schrieb Tom Lane:
> > is to make psql recognize the error (the error code regime in libpq would
> > have to be extended for that),
>
> Extended how?  The error you're interested in will come back as
> ERRCODE_UNDEFINED_DATABASE.

AFAICT, error codes are only accessible through PGresult.  But if the 
connection attempt fails, you have at best a PGconn.  This is the same kind 
of issue we have with frontends parsing the "no password supplied" message, 
because PQconnect cannot supply an error code in this case.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Adding a suffix array index
Next
From: Simon Riggs
Date:
Subject: Re: Adding a suffix array index