Re: 8.0 libpq: missing get_home_path()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.0 libpq: missing get_home_path()
Date: 2004-08-18 17:27:10
Message-ID: 2243.1092850030@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-08-18 17:39:34 Re: psql table comments?
Previous Message Andrew Dunstan 2004-08-18 17:26:42 psql table comments?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-08-18 18:35:20 Re: 8.0 libpq: missing get_home_path()
Previous Message Bruce Momjian 2004-08-18 17:17:44 Re: 8.0 libpq: missing get_home_path()