Re: [HACKERS] equal: don't know whether nodes of type 600 are equal - Mailing list pgsql-hackers

From jwieck@debis.com (Jan Wieck)
Subject Re: [HACKERS] equal: don't know whether nodes of type 600 are equal
Date
Msg-id m109Sdx-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to Re: [HACKERS] equal: don't know whether nodes of type 600 are equal  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] equal: don't know whether nodes of type 600 are equal  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> I do not think that extending copyObject to handle 604 (T_SelectStmt)
> is necessarily the right fix here.  I am casting a wary eye on
> the first lines of ExplainOneQuery:
>
>    /* plan the queries (XXX we've ignored rewrite!!) */
>    plan = planner(query);
>
> I think the real problem is that the EXCEPT/INTERSECT code is dependent
> on rewrite work that is not being done in the EXPLAIN path, and that
> we need to fix that underlying problem rather than patching the symptom.
> Otherwise we'll likely just hit another symptom...

    I  added  the  call  to QueryRewrite() in ExplainQuery() some
    time ago. So the comment  in  ExplainOneQuery()  isn't  right
    (and I should have removed that).


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] One I've never seen before:
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] One I've never seen before: