Re: Test database for new installs?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Test database for new installs?
Date: 2004-11-19 15:45:32
Message-ID: 200411191645.32915.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-11-19 15:45:40 Re: Adding a suffix array index
Previous Message Tom Lane 2004-11-19 15:35:20 Re: Adding a suffix array index