Re: Parallel safety tagging of extension functions

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Parallel safety tagging of extension functions
Дата
Msg-id CAB7nPqQa_wTHEnb9oTZYynYOb9GK=FH-zyvHjO73C_4XR8sC4w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Parallel safety tagging of extension functions  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
On Sat, May 21, 2016 at 1:01 PM, Andreas Karlsson <andreas@proxel.se> wrote:
> Another question which I thought of is what we should do with functions like
> pg_file_write() in adminpack.
>
> While it is perfectly fine to modify files from the parallel workers, a user
> could get race conditions if he tries to modify the same file multiple
> times. Is this a kind of problem the PARALLEL tagging should try to prevent,
> or is that something we should leave to the user?

Having multiple processes trying to write to a file on Windows is no
good either and would need some extra logic with EventWaitHandle().
I'd rather have those be marked as unsafe for now.
-- 
Michael



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

Предыдущее
От: Andreas Karlsson
Дата:
Сообщение: Re: Parallel safety tagging of extension functions
Следующее
От: Pete Hollobon
Дата:
Сообщение: Re: [PATCH] Add EXPLAIN (ALL) shorthand