pgsql: Fix overly-enthusiastic Assert in printing of Param reference ex

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix overly-enthusiastic Assert in printing of Param reference ex
Date: 2010-10-25 18:25:52
Message-ID: E1PARk0-0007uL-SF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix overly-enthusiastic Assert in printing of Param reference expressions.

A NestLoopParam's value can only be a Var or Aggref, but this isn't the
case in general for SubPlan parameters, so print_parameter_expr had better
be prepared to cope. Brain fade in my recent patch to print the referenced
expression instead of just printing $N for PARAM_EXEC Params. Per report
from Pavel Stehule.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=c6873eac4c33720140240cdbd1a663fecc922c57

Modified Files
--------------
src/backend/utils/adt/ruleutils.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2010-10-25 18:46:37 pgsql: Refactor typenameTypeId()
Previous Message Tom Lane 2010-10-25 17:05:11 pgsql: Fix inline_set_returning_function() to preserve the invalItems l