Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds
Дата
Msg-id
423731.1678381075@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds PG Bug reporting form <noreply@postgresql.org>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Alexander Lakhin <exclusion@gmail.com>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Etsuro Fujita <etsuro.fujita@gmail.com>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Etsuro Fujita <etsuro.fujita@gmail.com>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Andres Freund <andres@anarazel.de>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Thomas Munro <thomas.munro@gmail.com>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Andres Freund <andres@anarazel.de>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Andres Freund <andres@anarazel.de>
Re: BUG #17828: postgres_fdw leaks file descriptors on error and aborts aborted transaction in lack of fds Etsuro Fujita <etsuro.fujita@gmail.com>
PG Bug reporting form  writes:
> The following script:
> [ leaks a file descriptor per error ]

Yeah, at least on platforms where WaitEventSets own kernel file
descriptors.  I don't think it's postgres_fdw's fault though,
but that of ExecAppendAsyncEventWait, which is ignoring the
possibility of failing partway through.  It looks like it'd be
sufficient to add a PG_CATCH or PG_FINALLY block there to make
sure the WaitEventSet is disposed of properly --- fortunately,
it doesn't need to have any longer lifespan than that one
function.

			regards, tom lane


В списке pgsql-bugs по дате отправления
От: Tom Lane
Дата:
От: Hanna Yanchurevich
Дата:
FAQ