Re: BUG #1580: pg_dumpall aborts when cwd is unreadable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1580: pg_dumpall aborts when cwd is unreadable
Дата
Msg-id 22121.1113199666@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1580: pg_dumpall aborts when cwd is unreadable  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The code right now tests for 'cwd' first and just errors out if it can't
> find it.  Is it worth refactoring it so you can run pg_dumpall from a
> directory you can't view?  Instead of checking 'cwd' right at the start
> we would have to find it only when we need it, and in several places or
> in a function call.  It doesn't seem worth it to me.

... and it would *still* fail if you tried to call pg_dumpall via a
symlink or relative path.  Unless someone knows a portable way to
resolve symlinks without doing a chdir first, I think there's no
way to avoid the surprise factor.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1577: round(dp) function does not round to nearest integer properly
Следующее
От: Diego Cattelan
Дата:
Сообщение: Re: BUG #1547: CREATE TYPE AS error