Re: 8.0 libpq: missing get_home_path()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.0 libpq: missing get_home_path()
Дата
Msg-id 2243.1092850030@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.0 libpq: missing get_home_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: 8.0 libpq: missing get_home_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: psql table comments?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql table comments?