Skip site navigation (1) Skip section navigation (2)

pgsql: Fix "cannot handle unplanned sub-select" error that can occur

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix "cannot handle unplanned sub-select" error that can occur
Date: 2010-07-08 00:14:41
Message-ID: 20100708001441.858C67541D4@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix "cannot handle unplanned sub-select" error that can occur when a
sub-select contains a join alias reference that expands into an expression
containing another sub-select.  Per yesterday's report from Merlin Moncure
and subsequent off-list investigation.

Back-patch to 7.4.  Older versions didn't attempt to flatten sub-selects in
ways that would trigger this problem.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/optimizer/util:
        var.c (r1.54 -> r1.54.4.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/var.c?r1=1.54&r2=1.54.4.1)
    pgsql/src/test/regress/expected:
        subselect.out (r1.8 -> r1.8.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/subselect.out?r1=1.8&r2=1.8.2.1)
    pgsql/src/test/regress/sql:
        subselect.sql (r1.5 -> r1.5.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/subselect.sql?r1=1.5&r2=1.5.2.1)

pgsql-committers by date

Next:From: C├ędric VillemainDate: 2010-07-08 00:32:12
Subject: Re: Re: [COMMITTERS] pgsql: Fix log_temp_files docs and comments to say bytes not kilobytes.
Previous:From: Tom LaneDate: 2010-07-08 00:14:33
Subject: pgsql: Fix "cannot handle unplanned sub-select" error that can occur

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group