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

pgsql: Fix planning of SubLinks to ensure that Vars generated from

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix planning of SubLinks to ensure that Vars generated from
Date: 2006-12-06 19:40:01
Message-ID: 20061206194001.D50409FA1DE@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Log Message:
-----------
Fix planning of SubLinks to ensure that Vars generated from transformation of
a sublink's test expression have the correct vartypmod, rather than defaulting
to -1.  There's at least one place where this is important because we're
expecting these Vars to be exactly equal() to those appearing in the subplan
itself.  This is a pretty klugy solution --- it would likely be cleaner to
change Param nodes to include a typmod field --- but we can't do that in the
already-released 8.2 branch.
Per bug report from Hubert Fongarnand.

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        subselect.c (r1.112 -> r1.113)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/subselect.c.diff?r1=1.112&r2=1.113)

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-12-06 19:43:05
Subject: Re: Bug in PostGreSQL 8.2
Previous:From: Jeff DavisDate: 2006-12-06 19:37:32
Subject: 8.2 bug with outer join reordering

pgsql-committers by date

Next:From: Tom LaneDate: 2006-12-06 19:40:08
Subject: pgsql: Fix planning of SubLinks to ensure that Vars generated from
Previous:From: Neil ConwayDate: 2006-12-06 18:06:48
Subject: pgsql: Add a txn_start column to pg_stat_activity.

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