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

pgsql: Change the planner-to-executor API so that the planner tells the

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change the planner-to-executor API so that the planner tells the
Date: 2007-01-10 18:06:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Change the planner-to-executor API so that the planner tells the executor
which comparison operators to use for plan nodes involving tuple comparison
(Agg, Group, Unique, SetOp).  Formerly the executor looked up the default
equality operator for the datatype, which was really pretty shaky, since it's
possible that the data being fed to the node is sorted according to some
nondefault operator class that could have an incompatible idea of equality.
The planner knows what it has sorted by and therefore can provide the right
equality operator to use.  Also, this change moves a couple of catalog lookups
out of the executor and into the planner, which should help startup time for
pre-planned queries by some small amount.  Modify the planner to remove some
other cavalier assumptions about always being able to use the default
operators.  Also add "nulls first/last" info to the Plan node for a mergejoin
--- neither the executor nor the planner can cope yet, but at least the API is
in place.

Modified Files:
        execGrouping.c (r1.22 -> r1.23)
        nodeAgg.c (r1.148 -> r1.149)
        nodeGroup.c (r1.66 -> r1.67)
        nodeMergejoin.c (r1.84 -> r1.85)
        nodeSetOp.c (r1.23 -> r1.24)
        nodeUnique.c (r1.54 -> r1.55)
        copyfuncs.c (r1.360 -> r1.361)
        equalfuncs.c (r1.294 -> r1.295)
        outfuncs.c (r1.292 -> r1.293)
        costsize.c (r1.173 -> r1.174)
        joinpath.c (r1.109 -> r1.110)
        createplan.c (r1.220 -> r1.221)
        planner.c (r1.210 -> r1.211)
        subselect.c (r1.116 -> r1.117)
        clauses.c (r1.228 -> r1.229)
        pathnode.c (r1.135 -> r1.136)
        parse_clause.c (r1.162 -> r1.163)
        lsyscache.c (r1.142 -> r1.143)
        tuplesort.c (r1.73 -> r1.74)
        executor.h (r1.133 -> r1.134)
        plannodes.h (r1.88 -> r1.89)
        relation.h (r1.131 -> r1.132)
        pathnode.h (r1.74 -> r1.75)
        planmain.h (r1.96 -> r1.97)
        lsyscache.h (r1.111 -> r1.112)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-01-10 18:22:50
Subject: pgsql: Make sure BYTE_ORDER gets defined in 64-bit builds on Solaris,
Previous:From: Tom LaneDate: 2007-01-10 14:17:19
Subject: Re: pgsql: Change Windows rename and unlink substitutes so that they time

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