Re: ExecAppendAsyncEventWait() in REL_14_STABLE can corrupt PG_exception_stack

Etsuro Fujita <etsuro.fujita@gmail.com>

From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Pyhalov <a.pyhalov@postgrespro.ru>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2024-02-26T07:29:44Z
Lists: pgsql-hackers
On Mon, Feb 26, 2024 at 8:37 AM Michael Paquier <michael@paquier.xyz> wrote:
> I don't see how that's directly your fault as this is a thinko in the
> set of commits 481d7d1c01, 555276f859 and 501cfd07da that have hit
> 14~16, ignoring entirely the TRY/CATCH block.

The set of commits is actually a fix for resource leaks in my commit 27e1f1456.

> Anyway, if you want to address it yourself, feel free to go ahead,
> thanks!  I would have done it but I've been busy with life stuff for
> the last couple of days.

Will do.  (I was thinking you would get busy from now on.)

Best regards,
Etsuro Fujita



Commits

  1. Fix bogus coding in ExecAppendAsyncEventWait().

  2. Fix resource leak when a FDW's ForeignAsyncRequest function fails

  3. postgres_fdw: Fix handling of pending asynchronous requests.

  4. Add support for asynchronous execution.