Re: [PATCHES] default database creation with initdb

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] default database creation with initdb
Дата
Msg-id 6974.1119278887@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] default database creation with initdb  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: [PATCHES] default database creation with initdb  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Tom Lane wrote:
>> If it's a server-side failure it should have a SQLSTATE code.

> Specifically, I'm talking about

> "no pg_hba.conf entry for ....",

ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION

> "Ident authentication failed.." (both server sice)

Ditto.  Do you need to know the difference?  What exactly would client
code do differently for these two cases?

> and  "Is the server running on host ..." from libpq 

libpq doesn't currently assign SQLSTATEs to internally detected errors
... someday someone should fix that.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: quote_boolean() and friends missing
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: [PATCHES] default database creation with initdb