Re: DELETE with LIMIT (or my first hack) - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: DELETE with LIMIT (or my first hack)
Date
Msg-id 1291155667.11789.6.camel@jdavis-ux.asterdata.local
Whole thread Raw
In response to Re: DELETE with LIMIT (or my first hack)  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Tue, 2010-11-30 at 15:52 -0500, Robert Haas wrote:
> On Tue, Nov 30, 2010 at 2:45 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> > On Tue, 2010-11-30 at 11:12 -0500, Robert Haas wrote:
> >>
> >> Could you possibly have ModifyTable -> Limit -> MergeAppend?
> >
> > Before MergeAppend knows which tuple to produce, it needs to see the
> > tuples (at least the first one from each of its children), meaning that
> > it needs to pull them through ModifyTable; and at that point it's
> > already too late.
> >
> 
> You seem to be imagining the MergeAppend node on top

Yes, I assumed that the tuples flowed in the direction of the arrows ;)

Now that I think about it, your representation makes some sense given
our EXPLAIN output.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: DELETE with LIMIT (or my first hack)
Next
From: Jeff Janes
Date:
Subject: Re: Spread checkpoint sync