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
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> 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
Дата:
Сообщение: Re: BUG #17826: An assert failed in /src/backend/optimizer/util/var.c
Следующее
От: Hanna Yanchurevich
Дата:
Сообщение: Re: BUG #17827: Rule on insert into table doesn't work when excepting select from the table itself