Re: Path question - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Path question
Date
Msg-id AANLkTikjxPMNUQivWmEdk0cnRNBVx_ivGiptoDS526Q1@mail.gmail.com
Whole thread Raw
In response to Re: Path question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Oct 14, 2010 at 8:34 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I did run into a problem with my plan to call the new node type "Merge":
> the planner is already using "MergePath" as the name for the Path struct
> that is precursor to a MergeJoin.  For the moment I'm calling the new
> node type MergeAppend, but as mentioned I feel that that's a bit of a
> misnomer.

On the plus side the resulting node does have a lot in common with
Append nodes and a lot of places that do something special with Append
nodes will have to do the same things with the new node, so having a
similar name might help people remember that when they're adding their
special code for Append.

At the time I went back and forth on whether to have a separate node.
I tried to do it and had the impression that there were a lot more
places that would need to treat the two similarly than places that
needed to treat the two differently. I'm curious to see how you do it
cleanly.

The only other name I batted around at the time was OrderedAppend
which only alters the other half of the name, so no real help.

--
greg


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: is sync rep stalled?
Next
From: Tatsuo Ishii
Date:
Subject: Re: How to reliably detect if it's a promoting standby