]> granicus.if.org Git - postgresql/commit
Avoid core dump for empty prepared statement in an aborted transaction.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Jan 2017 00:52:13 +0000 (19:52 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Jan 2017 00:52:13 +0000 (19:52 -0500)
commitba61a04bc7fefeee03416d9911eb825c4897c223
tree012e6abc4841574d0400842f1cb385ede4367389
parentd479e37e3d20efad8b178e0f1e468c086a7519a8
Avoid core dump for empty prepared statement in an aborted transaction.

Brown-paper-bag bug in commit ab1f0c822: the old code here coped with
null CachedPlanSource.raw_parse_tree, the new code not so much.
Per report from Dave Cramer.

No regression test, because our core testing infrastructure doesn't
provide any easy way to exercise this path.  Fortunately, the JDBC
crew test it regularly.

Discussion: https://postgr.es/m/CADK3HH+Ug3xCysKqw_dZOnaNnytZ1Rh5yP05hjO-e4NoyRxVvA@mail.gmail.com
src/backend/tcop/postgres.c