Re: unknown libpq service entries ignored

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: unknown libpq service entries ignored
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C203938076@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на unknown libpq service entries ignored  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut wrote:
> When using the "service" parameter in a libpq connection (e.g., psql
> service=foo), and the service name is not defined in pg_service.conf,
> then the setting is silently ignored and the connection proceeds with
> whatever other settings and defaults apply.  That does not look very
> robust.  Shouldn't there be an error when a specified service name does
> not exist?

I agree. It leads to strange error messages at least (I didn't want
to connect to port 5432 on localhost?!?), and you could end up
connecting to a different database than you wanted without
noticing it.

Yours,
Laurenz Albe


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: patch - per-tablespace random_page_cost/seq_page_cost
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: unknown libpq service entries ignored