Re: Subquery with toplevel reference used to work in pg 8.4

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Mark Murawski <markm-lists(at)intellasoft(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Subquery with toplevel reference used to work in pg 8.4
Date: 2012-03-24 04:47:44
Message-ID: CAJKUy5gd6kR7NuPwVjzW0AkKjLR8J5JNZmQZ=stCck+uhfCcfQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Mar 23, 2012 at 11:04 PM, Mark Murawski
<markm-lists(at)intellasoft(dot)net> wrote:
>
> ERROR:  Upper-level PlaceHolderVar found where not expected
>

This is part of commit c1d9579dd8bf3c921ca6bc2b62c40da6d25372e5 which
as stated in the commit log:
"""
tightened the error checking in this area a bit:
if it was ever valid to see an uplevel Var, Aggref, or PlaceHolderVar here,
that was a long time ago, so complain instead of ignoring them.
"""

the query seems useless but valid to me...
just removing this check and the assert in
find_placeholder_info():placeholder.c seems to make this query behave
normally again.

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-03-24 16:35:11 Re: Subquery with toplevel reference used to work in pg 8.4
Previous Message Mark Murawski 2012-03-24 04:04:56 Subquery with toplevel reference used to work in pg 8.4