Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run
Дата
Msg-id 13484.1155658925@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> what issues might arise if the output is redirected to a legal tmp file?

Well, (1) finding a place to put the temp file, ie a writable directory;
(2) ensuring the file is removed afterwards; (3) not exposing the user
to security hazards due to unsafe use of a temp file (ye olde
overwrite-a-symlink risk).  Perhaps a few more I didn't think of.

It's not a trivial change, and the evidence presented so far hasn't
convinced me that we need to put in the effort.

            regards, tom lane

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCHES] Custom variable class segmentation fault
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: An Idea for planner hints