Re: BUG #17514: Application with embedded SQL crashes when executing EXEC SQL PREPARE

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "okano.naoki@fujitsu.com" <okano.naoki@fujitsu.com>
Cc: "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2022-06-14T22:18:08Z
Lists: pgsql-bugs
"okano.naoki@fujitsu.com" <okano.naoki@fujitsu.com> writes:
> I applied this patch to the master branch, and confirmed that the 
> application resulted in an error instead of a crash.
> As with PREPARE, executing DISCONNECT CURRENT also caused the 
> application to crash, but this patch has fixed that.
> The patch looks good to me.

Pushed then, thanks for testing!

(Note that this will appear in the August releases, not in this
week's 14.4 release.)

			regards, tom lane



Commits

  1. Avoid ecpglib core dump with out-of-order operations.