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>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>,
Alexander Lakhin <exclusion@gmail.com>,
pgsql-bugs@lists.postgresql.org
Date: 2024-02-08T22:06:46Z
Lists: pgsql-bugs
Andres Freund <andres@anarazel.de> writes: > I also wonder if postgres_fdw should strive to use a longer lived wait event > set. For efficiency, if nothing else? That'd avoid the need to create one > during error handling. Seems like a plausible idea. Having to acquire resources to clean up an error is an anti-pattern for sure. regards, tom lane
Commits
-
Fix resource leak when a FDW's ForeignAsyncRequest function fails
- 555276f85940 14.11 landed
- 481d7d1c01c6 15.6 landed
- 501cfd07dac6 16.2 landed