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>)
Список pgsql-hackers
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
Дата:
Сообщение: Re: length coerce for bpchar is broken since 7.0
Следующее
От: Michael J Schout
Дата:
Сообщение: Re: The lightbulb just went on...