pgsql: Ensure that the result tuple of an EvalPlanQual cycle gets

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure that the result tuple of an EvalPlanQual cycle gets
Date: 2009-12-11 18:14:43
Message-ID: 20091211181443.D1EDD753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/executor:
execMain.c (r1.336 -> r1.337)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/execMain.c?r1=1.336&r2=1.337)

Browse pgsql-committers by date

  From Date Subject
Next Message User Fxjr 2009-12-11 20:24:03 npgsql - Npgsql2: Bug: Money to Decimal conversion.
Previous Message Takahiro Itagaki 2009-12-11 03:34:57 pgsql: Add large object access control.