Re: pgsql-server: Use canonicalize_path for -D, GUC paths, and paths coming

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql-server: Use canonicalize_path for -D, GUC paths, and paths coming
Дата
Msg-id 2389.1089590567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql-server: Use canonicalize_path for -D, GUC paths,  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pgsql-server: Use canonicalize_path for -D, GUC paths,
Список pgsql-committers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> None of these are correct.  canonicalize_path is only intended for
>> directory names not file names.  (I think the same problem applies
>> to several of your GUC variable changes, too.)

> canonicalize_path changes \ to /, and trims the trailing slash.

... and probably breaks the GUC variables that represent search paths,
rather than single file/directory names.  Certainly canonicalizing those
values in toto will not have the desired effects; you'd need to
canonicalize the path elements after they are extracted.

            regards, tom lane

В списке pgsql-committers по дате отправления: