pg_test_fsync file descriptor leak

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема pg_test_fsync file descriptor leak
Дата
Msg-id CAMkU=1w4At93+pF2q6Jr2wTHGK808J1+J9ZhT6+NbzeJ8ua52A@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_test_fsync file descriptor leak  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
The open_datasync code opens the output file as a test to make sure the flags are accepted by the OS, and if it succeeds it then immediately opens the file again with the same flags, overwriting and so leaking the descriptor from the previous open.


On Windows MinGW, this prevents the final unlink from working, as the file is still open.

Trivial fix attached.

Thanks,

Jeff


Вложения

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: 9.5: Better memory accounting, towards memory-bounded HashAgg
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: plpgsql - Assert statement