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

pgsql: Better solution to the IN-list issue: instead of having an

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Better solution to the IN-list issue: instead of having an
Date: 2008-10-26 02:46:36
Message-ID: 20081026024636.570AE7545A4@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Better solution to the IN-list issue: instead of having an arbitrary cutoff,
treat Var and non-Var IN-list items differently.  Only non-Var items are
candidates to go into an ANY(ARRAY) construct --- we put all Vars as separate
OR conditions on the grounds that that leaves more scope for optimization.
Per suggestion from Robert Haas.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.198.2.1 -> r1.198.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.198.2.1&r2=1.198.2.2)

pgsql-committers by date

Next:From: Jeremy DrakeDate: 2008-10-26 07:46:50
Subject: varint - varint: refactor operations on VarInts to functions with normal
Previous:From: Tom LaneDate: 2008-10-26 02:46:30
Subject: pgsql: Better solution to the IN-list issue: instead of having an

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