pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix ExecuteCallStmt to not scribble on the passed-in parse tree.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix ExecuteCallStmt to not scribble on the passed-in parse tree.
@ 2018-11-04 19:51  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-11-04 19:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix ExecuteCallStmt to not scribble on the passed-in parse tree.

Modifying the parse tree at execution time is, or at least ought to be,
verboten.  It seems quite difficult to actually cause a crash this way
in v11 (although you can exhibit it pretty easily in HEAD by messing
with plan_cache_mode).  Nonetheless, it's risky, so fix and back-patch.

Discussion: https://postgr.es/m/13789.1541359611@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9b6fb9fbb48dda828dcca47adc418632ddb36202

Modified Files
--------------
src/backend/commands/functioncmds.c | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix ExecuteCallStmt to not scribble on the passed-in parse tree.
@ 2018-11-04 19:51  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-11-04 19:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix ExecuteCallStmt to not scribble on the passed-in parse tree.

Modifying the parse tree at execution time is, or at least ought to be,
verboten.  It seems quite difficult to actually cause a crash this way
in v11 (although you can exhibit it pretty easily in HEAD by messing
with plan_cache_mode).  Nonetheless, it's risky, so fix and back-patch.

Discussion: https://postgr.es/m/13789.1541359611@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d358da81414abc57ef44dfd45dfedc3d443e5bd5

Modified Files
--------------
src/backend/commands/functioncmds.c | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-11-04 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-04 19:51 pgsql: Fix ExecuteCallStmt to not scribble on the passed-in parse tree. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-04 19:51 pgsql: Fix ExecuteCallStmt to not scribble on the passed-in parse tree. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox