RE: BUG #17514: Application with embedded SQL crashes when executing EXEC SQL PREPARE
okano.naoki@fujitsu.com <okano.naoki@fujitsu.com>
From: "okano.naoki@fujitsu.com" <okano.naoki@fujitsu.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2022-06-10T05:09:19Z
Lists: pgsql-bugs
Tom Lane wrote: > We could do something like the attached, perhaps. Having said that, > an application that includes no error checks is pretty unlikely to > fail gracefully :-(. Thank you for replying and creating the patch! 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. I agree that applications should consider EXEC SQL PREPARE returning errors. Regards, Naoki Okano
Commits
-
Avoid ecpglib core dump with out-of-order operations.
- f7797747fc8f 11.17 landed
- ba412c905af1 15.0 landed
- 9a3aab0f2a5b 12.12 landed
- 86258f083aad 10.22 landed
- 7bc21ed8c8e7 14.5 landed
- 12b8fb34a933 13.8 landed