Re: Test database for new installs?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Test database for new installs?
Дата
Msg-id 28519.1100879842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Test database for new installs?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> 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.

Oh, right.  Yes, we should do something about that.  I think we could
invent PQerrorField which is to PQerrorMessage as PQresultErrorField
is to PQresultErrorMessage.  The reason I didn't do so during the 7.4
cycle is that errors generated internally within libpq wouldn't have any
field information, at least not without significant hacking on the libpq
sources.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Adding a suffix array index
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: Test database for new installs?