Re: BUG #6715: 9.2b2 psql \ir does not understand leading ../

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6715: 9.2b2 psql \ir does not understand leading ../
Дата
Msg-id 22344.1341519037@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6715: 9.2b2 psql \ir does not understand leading ../  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> On reflection I think that what we need to do is fix it so that it only
> strips "../" from the tail string when there is a directory name
> available to be stripped from the head string.  Otherwise just stop
> trimming.

Actually, there is a much simpler fix: don't let it strip ".." at all.
There is no correctness reason to do that, and as for cosmetics, callers
who care can use canonicalize_path() to remove ".." correctly.  (AFAICS,
all existing callers of join_path_components already do so anyway.)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6715: 9.2b2 psql \ir does not understand leading ../
Следующее
От: Payal Singh
Дата:
Сообщение: Re: Problem with pg_upgrade