Re: incompatible changes of PQsetdbLogin() - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: incompatible changes of PQsetdbLogin()
Date
Msg-id Pine.LNX.4.21.0010171724000.980-100000@peter.localdomain
Whole thread Raw
In response to incompatible changes of PQsetdbLogin()  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: length coerce for bpchar is broken since 7.0
Next
From: Michael J Schout
Date:
Subject: Re: The lightbulb just went on...