OSDN Git Service

Ensure that the result tuple of an EvalPlanQual cycle gets materialized
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Dec 2009 18:14:43 +0000 (18:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Dec 2009 18:14:43 +0000 (18:14 +0000)
commitd8e511fabbff0554cb872186c8a5de3b7715ec9b
tree1da1b3bf092293f7916e63665b8c3acd1009e140
parentf1325ce213ae1843d2ee636ff6780c3f8ac9ada6
Ensure that the result tuple of an EvalPlanQual cycle gets materialized
before we zap the input tuple.  Otherwise, pass-by-reference columns of
the result slot are likely to contain just references to the input
tuple, leading to big trouble if the pfree'd space is reused.  Per
trouble report from Jaime Casanova.  This is a new bug in the recent
rewrite of EvalPlanQual, so nothing to back-patch.
src/backend/executor/execMain.c