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:48
Message-ID: 20100709211148.D27F87541D5@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.

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

Browse pgsql-committers by date

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