Re: incompatible changes of PQsetdbLogin()

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: incompatible changes of PQsetdbLogin()
Дата
Msg-id
Pine.LNX.4.21.0010171724000.980-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
incompatible changes of PQsetdbLogin() Tatsuo Ishii <t-ishii@sra.co.jp>
Re: incompatible changes of PQsetdbLogin() Tom Lane <tgl@sss.pgh.pa.us>
Re: incompatible changes of PQsetdbLogin() Tatsuo Ishii <t-ishii@sra.co.jp>
Re: incompatible changes of PQsetdbLogin() Peter Eisentraut <peter_e@gmx.net>
Tatsuo Ishii writes:

> It seems some incompatible changes have been made between 7.0 and
> current. In 7.0, if a parameter is NULL OR a null string (""), then
> the value from an environment variable is applied. However in current
> ONLY NULL is considered. Is there any reason for this?

Yes, there are several reasons.  First, to be consistent with
PQconnectdb().  Second, to be able to override a set environment variable
with an empty value.  Third, because the existing behaviour was deemed to
be quite useless.  See Oct 2 thread "libpq PGHOST".  Is there a problem?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Michael J Schout
Дата:
FAQ