pgsql: Fix ruleutils' get_variable() to print something useful for Vars

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix ruleutils' get_variable() to print something useful for Vars
Date: 2010-07-09 21:11:57
Message-ID: 20100709211157.383647541D5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix ruleutils' get_variable() to print something useful for Vars referencing
resjunk outputs of subquery tlists, instead of throwing an error. Per bug
#5548 from Daniel Grace.

We might at some point find we ought to back-patch this further than 9.0,
but I think that such Vars can only occur as resjunk members of upper-level
tlists, in which case the problem can't arise because prior versions didn't
print resjunk tlist items in EXPLAIN VERBOSE.

Tags:
----
REL9_0_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
ruleutils.c (r1.326 -> r1.326.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/ruleutils.c?r1=1.326&r2=1.326.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-07-09 21:21:54 Re: [COMMITTERS] pgsql: Add a hook in ExecCheckRTPerms().
Previous Message Tom Lane 2010-07-09 21:11:48 pgsql: Fix ruleutils' get_variable() to print something useful for Vars