Re: 8.0 libpq: missing get_home_path() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 8.0 libpq: missing get_home_path()
Date
Msg-id 2243.1092850030@sss.pgh.pa.us
Whole thread Raw
In response to Re: 8.0 libpq: missing get_home_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: 8.0 libpq: missing get_home_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I need to call canonicalize_path() in the macro.

There is only one use of get_home_path in libpq.  Lose it and do
a direct getenv(HOMEDIR).  You do not really need to do a
canonicalize_path there; it'd be sufficient to insert the appropriate
directory separator ('/' or '\') when forming pgpassfile just below.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: psql table comments?
Next
From: Tom Lane
Date:
Subject: Re: psql table comments?