Re: Ordered Append Node

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: Florian Weimer <fweimer(at)bfk(dot)de>, Gregory Stark <stark(at)enterprisedb(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Ordered Append Node
Date: 2007-11-23 09:28:34
Message-ID: 47469D42.7040003@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Markus Schiltknecht wrote:
> Florian Weimer wrote:
>>> Given the partitioning case, I'd expect all rows to have an equal
>>> tuple descriptor. Maybe this is a matter of what to optimize, then?
>>>
>>> Could you elaborate on what use case you have in mind?
>>
>> You need a priority queue to figure out from which tape (partition)
>> you need to remove the next tuple.
>
> And why do you need lots of heap memory to do that? Anything wrong with
> the zipper approach I've outlined upthread?

We're talking about a binary heap, with just one node per partition.
AFAICT it's roughly the same data structure as the zipper tree you
envisioned, but not implemented with separate executor nodes for each level.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Weimer 2007-11-23 09:30:08 Re: Ordered Append Node
Previous Message Markus Schiltknecht 2007-11-23 09:18:03 Re: Ordered Append Node