Re: Fractal tree indexing

Lists: pgsql-hackers
From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fractal tree indexing
Date: 2013-02-13 09:01:26
Message-ID: CAOeZVic-W4_4P4wd6Jmg=XzMFoWZXvULHvEoWe3zAdD4fZpZpA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi all,

Just a curiosity I couldnt control. I was recently reading about
Fractal tree indexing
(http://www.tokutek.com/2012/12/fractal-tree-indexing-overview/) and
how TokuDB engine for MySQL is really working nicely with big data.

I was wondering, do we have support for fractal tree indexing? I mean,
it really does seem to help manage big data, so we could think of
supporting it in some form for our large data set clients( if it is
not happening already someplace which I have missed).

Regards,

Atri

--
Regards,

Atri
l'apprenant


From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 09:38:26
Message-ID: 511B5F12.7060500@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13.02.2013 11:01, Atri Sharma wrote:
> Hi all,
>
> Just a curiosity I couldnt control. I was recently reading about
> Fractal tree indexing
> (http://www.tokutek.com/2012/12/fractal-tree-indexing-overview/) and
> how TokuDB engine for MySQL is really working nicely with big data.

Hmm, sounds very similar to the GiST buffering build work Alexander
Korotkov did for 9.2. Only the buffers are for B-trees rather than GiST,
and the buffers are permanent, rather than used only during index build.
It's also somewhat similar to the fast insert mechanism in GIN, except
that the gin fast insert buffer is just a single buffer, rather than a
buffer at each node.

> I was wondering, do we have support for fractal tree indexing? I mean,
> it really does seem to help manage big data, so we could think of
> supporting it in some form for our large data set clients( if it is
> not happening already someplace which I have missed).

There are no fractal trees in PostgreSQL today. Patches are welcome ;-).

- Heikki


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 10:10:12
Message-ID: CAOeZVieGPEsHpqhzC15O5U0zCAVmRMgf5+hWfGZHtXnqyqKhtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 3:08 PM, Heikki Linnakangas
<hlinnakangas(at)vmware(dot)com> wrote:
> On 13.02.2013 11:01, Atri Sharma wrote:
>>
>> Hi all,
>>
>> Just a curiosity I couldnt control. I was recently reading about
>> Fractal tree indexing
>> (http://www.tokutek.com/2012/12/fractal-tree-indexing-overview/) and
>> how TokuDB engine for MySQL is really working nicely with big data.
>
>
> Hmm, sounds very similar to the GiST buffering build work Alexander Korotkov
> did for 9.2. Only the buffers are for B-trees rather than GiST, and the
> buffers are permanent, rather than used only during index build. It's also
> somewhat similar to the fast insert mechanism in GIN, except that the gin
> fast insert buffer is just a single buffer, rather than a buffer at each
> node.
>
>
>> I was wondering, do we have support for fractal tree indexing? I mean,
>> it really does seem to help manage big data, so we could think of
>> supporting it in some form for our large data set clients( if it is
>> not happening already someplace which I have missed).
>
>
> There are no fractal trees in PostgreSQL today. Patches are welcome ;-).
>
> - Heikki

Hi Heikki,

Yeah,it is pretty close to GisT, but as you said, it still works on BTree.

On the other hand, one thing I really liked about Fractal trees is
that it attempts to address the problems with BTrees. I feel fractal
trees can provide us with a new way altogether to handle new data,
rather than building on top of BTrees.

I would love to chip in, but would require lots of help :)

Do you think building a new index in postgres with fractal trees as
the basis would serve the purpose? or is there something else we
should think of?

Atri

--
Regards,

Atri
l'apprenant


From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 10:16:35
Message-ID: CAPpHfdtV46zQjp88HR5U3hw-Uw7xYWrVDGgyqOE6NWYKQrtPLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 1:38 PM, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com
> wrote:

> On 13.02.2013 11:01, Atri Sharma wrote:
>
>> Hi all,
>>
>> Just a curiosity I couldnt control. I was recently reading about
>> Fractal tree indexing
>> (http://www.tokutek.com/2012/**12/fractal-tree-indexing-**overview/<http://www.tokutek.com/2012/12/fractal-tree-indexing-overview/>)
>> and
>> how TokuDB engine for MySQL is really working nicely with big data.
>>
>
> Hmm, sounds very similar to the GiST buffering build work Alexander
> Korotkov did for 9.2. Only the buffers are for B-trees rather than GiST,
> and the buffers are permanent, rather than used only during index build.
> It's also somewhat similar to the fast insert mechanism in GIN, except that
> the gin fast insert buffer is just a single buffer, rather than a buffer at
> each node.
>
>
> I was wondering, do we have support for fractal tree indexing? I mean,
>> it really does seem to help manage big data, so we could think of
>> supporting it in some form for our large data set clients( if it is
>> not happening already someplace which I have missed).
>>
>
> There are no fractal trees in PostgreSQL today. Patches are welcome ;-).

I remember we have already discussed fractal trees privately. Short
conclusions are so:
1) Fractal tree indexes are patented. It is distributed as commercial
extension to MySQL. So we can't include it into PostgreSQL core.
2) Tokutek can't provide full-fledged fractal tree indexes as PostgreSQL
extension because lack of WAL extensibility.
We could think about WAL extensibility which would help other applications
as well.

------
With best regards,
Alexander Korotkov.


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 10:19:55
Message-ID: CAOeZVieHRejg8Gy-Evek4e2H8XcsnQ7F_saDze7Abp4cwH305Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Wed:

>
> I remember we have already discussed fractal trees privately. Short
> conclusions are so:
> 1) Fractal tree indexes are patented. It is distributed as commercial
> extension to MySQL. So we can't include it into PostgreSQL core.
> 2) Tokutek can't provide full-fledged fractal tree indexes as PostgreSQL
> extension because lack of WAL extensibility.
> We could think about WAL extensibility which would help other applications
> as well.
>

Sounds nice. WAL extensibility can help.

Atri

--
Regards,

Atri
l'appren


From: Greg Stark <stark(at)mit(dot)edu>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 12:51:57
Message-ID: CAM-w4HPRLs9ASA2+DguzoXg8QmY17+88AMnyCQYJZ7hrE=Jc4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 10:19 AM, Atri Sharma <atri(dot)jiit(at)gmail(dot)com> wrote:
>> 2) Tokutek can't provide full-fledged fractal tree indexes as PostgreSQL
>> extension because lack of WAL extensibility.
>> We could think about WAL extensibility which would help other applications
>> as well.
>>
>
> Sounds nice. WAL extensibility can help.

The problem with WAL extensibility is that extensions can come and go
and change over time. If the database can't interpret some WAL record
or misinterprets it because a module is missing or changed since that
record was written then you could lose your whole database. I think a
fundamental part of extensibility is isolating the effects of the
extensions from the rest of the system so that problem would have to
be tackled. Perhaps making each file owned by a single resource
manager and having the database be able to deal with individual files
being corrupted. But that doesn't deal with all record types and there
are situations where you really want to have part of a file contain
data managed by another resource manager.

Heikki was talking about a generic WAL record type that would just
store a binary delta between the version of the block when it was
locked and when it was unlocked. That would handle any extension
cleanly as far as data modification goes as long as the extension was
working through our buffer manager. It seems like an attractive idea
to me.

--
greg


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 13:24:51
Message-ID: 10468B76-66F7-4833-9E24-6CC686D656CD@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad

On 13-Feb-2013, at 18:21, Greg Stark <stark(at)mit(dot)edu> wrote
>
>
> Heikki was talking about a generic WAL record type that would just
> store a binary delta between the version of the block when it was
> locked and when it was unlocked. That would handle any extension
> cleanly as far as data modification goes as long as the extension was
> working through our buffer manager. It seems like an attractive idea
> to me.
>
>
How do we handle the case you mentioned, maybe a module that has been removed since a record was made? Is the solution that we encapsulate WAL from those kind of changes, and keep the WAL records same for everyone,irrespective whether they use an external module or not(I inferred this from Heikki's idea,or am I missing something here?)

Atri


From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 13:31:21
Message-ID: CAPpHfdtqMs3NU6TdJ3afqVfsCUfdzquEuOeAokgr5kHcD_gXBQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 4:51 PM, Greg Stark <stark(at)mit(dot)edu> wrote:

> Heikki was talking about a generic WAL record type that would just
> store a binary delta between the version of the block when it was
> locked and when it was unlocked. That would handle any extension
> cleanly as far as data modification goes as long as the extension was
> working through our buffer manager. It seems like an attractive idea
> to me.
>

It will, for sure, works well when atomic page changes are enough for us.
However, some operations, for example, page splits, contain changes in
multiple pages. Replaying changes in only some of pages is not fair. Now,
it's hard for me to imagine how to generalize it into generic WAL record
type.

------
With best regards,
Alexander Korotkov.


From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Greg Stark <stark(at)mit(dot)edu>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 13:35:10
Message-ID: 511B968E.5060607@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13.02.2013 15:31, Alexander Korotkov wrote:
> On Wed, Feb 13, 2013 at 4:51 PM, Greg Stark<stark(at)mit(dot)edu> wrote:
>
>> Heikki was talking about a generic WAL record type that would just
>> store a binary delta between the version of the block when it was
>> locked and when it was unlocked. That would handle any extension
>> cleanly as far as data modification goes as long as the extension was
>> working through our buffer manager. It seems like an attractive idea
>> to me.
>
> It will, for sure, works well when atomic page changes are enough for us.
> However, some operations, for example, page splits, contain changes in
> multiple pages. Replaying changes in only some of pages is not fair. Now,
> it's hard for me to imagine how to generalize it into generic WAL record
> type.

You could have a generic WAL record that applies changes to multiple
pages atomically.

- Heikki


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 13:54:28
Message-ID: 9BEBB696-AD58-4724-9A05-A33EF2E7B0DD@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad

On 13-Feb-2013, at 19:05, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:

> On 13.02.2013 15:31, Alexander Korotkov wrote:
>> On Wed, Feb 13, 2013 at 4:51 PM, Greg Stark<stark(at)mit(dot)edu> wrote:
>>
>>> Heikki was talking about a generic WAL record type that would just
>>> store a binary delta between the version of the block when it was
>>> locked and when it was unlocked. That would handle any extension
>>> cleanly as far as data modification goes as long as the extension was
>>> working through our buffer manager. It seems like an attractive idea
>>> to me.
>>
>> It will, for sure, works well when atomic page changes are enough for us.
>> However, some operations, for example, page splits, contain changes in
>> multiple pages. Replaying changes in only some of pages is not fair. Now,
>> it's hard for me to imagine how to generalize it into generic WAL record
>> type.
>
> You could have a generic WAL record that applies changes to multiple pages atomically.
>
>

Sounds extremely interesting and fun.How would we go about implementing it?

Atri


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 14:01:00
Message-ID: CA+U5nM+iO3MM_T_C8J6k9ZKv-xOjGLgxS4V7gSL+vnv6z_RaqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13 February 2013 13:35, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:

> You could have a generic WAL record that applies changes to multiple pages
> atomically.

I think its a good idea, the best idea even, but we still have no idea
what the requirements are without a clear case for an external index.
It could easily turn out that we invent a plausible API that's not
actually of use because of requirements for locking. Whoever wants
that can do the legwork.

IIRC each of the new index types has required some changes to the
generic APIs, which makes sense.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 14:13:20
Message-ID: C1DFC93E-24EE-4C73-99D4-A708F4024E9F@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad

On 13-Feb-2013, at 19:31, Simon Riggs <simon(at)2ndQuadrant(dot)com> wrote:
.
>
> I think its a good idea, the best idea even, but we still have no idea
> what the requirements are without a clear case for an external index.
> It could easily turn out that we invent a plausible API that's not
> actually of use because of requirements for locking. Whoever wants
> that can do the legwork.
>
> IIRC each of the new index types has required some changes to the
> generic APIs, which makes sense.
>
>

Does that mean we can add support for fractal tree indexes(or some thing on similar lines) in the regular way by changing the generic APIs?

IMO, we could design the fractal tree index and use it as the use case for generic WAL record(I am kind of obsessed with the idea of seeing fractal indexes being supported in Postgres).

Atri


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 14:43:16
Message-ID: 511BA684.5080902@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 02/13/2013 09:13 AM, Atri Sharma wrote:
>
> Sent from my iPad
>
> On 13-Feb-2013, at 19:31, Simon Riggs <simon(at)2ndQuadrant(dot)com> wrote:
> .
>> I think its a good idea, the best idea even, but we still have no idea
>> what the requirements are without a clear case for an external index.
>> It could easily turn out that we invent a plausible API that's not
>> actually of use because of requirements for locking. Whoever wants
>> that can do the legwork.
>>
>> IIRC each of the new index types has required some changes to the
>> generic APIs, which makes sense.
>>
>>
> Does that mean we can add support for fractal tree indexes(or some thing on similar lines) in the regular way by changing the generic APIs?
>
> IMO, we could design the fractal tree index and use it as the use case for generic WAL record(I am kind of obsessed with the idea of seeing fractal indexes being supported in Postgres).
>

If they are patented as Alexander says upthread, then surely the idea is
dead in the water.

cheers

andrew


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 14:49:39
Message-ID: 1592C954-0BA7-41E5-AD68-7DB08F896021@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


>
>
> If they are patented as Alexander says upthread, then surely the idea is dead in the water.
>
>
True, I think so too.

But,the generic WAL seems an awesome idea and I would love to help.

Atri


From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 14:50:12
Message-ID: 511BA824.60007@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 02/13/2013 10:43 PM, Andrew Dunstan wrote:
>
> On 02/13/2013 09:13 AM, Atri Sharma wrote:
>>
>> Sent from my iPad
>>
>> On 13-Feb-2013, at 19:31, Simon Riggs <simon(at)2ndQuadrant(dot)com> wrote:
>> .
>>> I think its a good idea, the best idea even, but we still have no idea
>>> what the requirements are without a clear case for an external index.
>>> It could easily turn out that we invent a plausible API that's not
>>> actually of use because of requirements for locking. Whoever wants
>>> that can do the legwork.
>>>
>>> IIRC each of the new index types has required some changes to the
>>> generic APIs, which makes sense.
>>>
>>>
>> Does that mean we can add support for fractal tree indexes(or some
>> thing on similar lines) in the regular way by changing the generic APIs?
>>
>> IMO, we could design the fractal tree index and use it as the use
>> case for generic WAL record(I am kind of obsessed with the idea of
>> seeing fractal indexes being supported in Postgres).
>>
>
> If they are patented as Alexander says upthread, then surely the idea
> is dead in the water.
Isn't practically everything patented, with varying degrees of validity
and patent defensibility? Particularly the trick of "renewing" expired
patents by submitting tiny variations.

I realise that this general situation is different to knowing about a
specific patent applying to a specific proposed technique, particularly
regarding the USA's insane triple-damages-for-knowing-about-it thing,
and that a patent can well and truly block the adoption of a technique
into Pg core. It might not prevent its implementation as an out-of-tree
extension though, even if that requires some enhancements to core APIs
to make it possible.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 15:00:10
Message-ID: 17913.1360767610@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Atri Sharma <atri(dot)jiit(at)gmail(dot)com> writes:
> Do you think building a new index in postgres with fractal trees as
> the basis would serve the purpose? or is there something else we
> should think of?

First explain why you couldn't build it as an opclass for gist or
spgist ...

regards, tom lane


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 15:49:26
Message-ID: 208237F6-1AF2-48EE-88E1-7E5C0FF47B54@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad

On 13-Feb-2013, at 20:30, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>
> First explain why you couldn't build it as an opclass for gist or
> spgist ...
>
>

That needs thinking about a bit.I was confused about the current indexes because they all build on BTrees.But, building an opclass with GiST should be a good solution.

Atri


From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:02:43
Message-ID: 511BB923.7040409@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13.02.2013 17:49, Atri Sharma wrote:
> On 13-Feb-2013, at 20:30, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> First explain why you couldn't build it as an opclass for gist or
>> spgist ...
>
> That needs thinking about a bit.I was confused about the current indexes because they all build on BTrees.But, building an opclass with GiST should be a good solution.

That makes no sense. I don't see any way to implement this in an
opclass, and it wouldn't make sense to re-implement this for every
opclass anyway.

The basic idea of a fractal tree index is to attach a buffer to every
non-leaf page. On insertion, instead of descending all the way down to
the correct leaf page, the new tuple is put on the buffer at the root
page. When that buffer fills up, all the tuples in the buffer are
cascaded down to the buffers on the next level pages. And recursively,
whenever a buffer fills up at any level, it's flushed to the next level.
This speeds up insertions, as you don't need to fetch and update the
right leaf page on every insert; the lower-level pages are updated in
batch as a buffer fills up.

As I said earlier, this is very similar to the way the GiST buffering
build algorithm works. It could be applied to any tree-structured access
method, including b-tree, GiST and SP-GiST.

- Heikki


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:10:25
Message-ID: 529CA4E9-9731-4D2D-A9B6-84D4FE53BCC4@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad
.
>
> That makes no sense. I don't see any way to implement this in an opclass, and it wouldn't make sense to re-implement this for every opclass anyway.
>
> The basic idea of a fractal tree index is to attach a buffer to every non-leaf page. On insertion, instead of descending all the way down to the correct leaf page, the new tuple is put on the buffer at the root page. When that buffer fills up, all the tuples in the buffer are cascaded down to the buffers on the next level pages. And recursively, whenever a buffer fills up at any level, it's flushed to the next level. This speeds up insertions, as you don't need to fetch and update the right leaf page on every insert; the lower-level pages are updated in batch as a buffer fills up.
>
> As I said earlier, this is very similar to the way the GiST buffering build algorithm works. It could be applied to any tree-structured access method, including b-tree, GiST and SP-GiST.
>

Can we implement it in a generic manner then? I mean,irrespective of the tree it is being applied to,be it BTree,gist or spgist?

Another thing,in case of a large tree which is split over multiple pages, how do we reduce the cost of I/o to fetch and rewrite all those pages?

Atri


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:20:26
Message-ID: 19381.1360772426@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
> The basic idea of a fractal tree index is to attach a buffer to every
> non-leaf page. On insertion, instead of descending all the way down to
> the correct leaf page, the new tuple is put on the buffer at the root
> page. When that buffer fills up, all the tuples in the buffer are
> cascaded down to the buffers on the next level pages. And recursively,
> whenever a buffer fills up at any level, it's flushed to the next level.

[ scratches head... ] What's "fractal" about that? Or is that just a
content-free marketing name for this technique?

regards, tom lane


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:43:24
Message-ID: 511BC2AC.8070202@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 02/13/2013 11:20 AM, Tom Lane wrote:
> Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
>> The basic idea of a fractal tree index is to attach a buffer to every
>> non-leaf page. On insertion, instead of descending all the way down to
>> the correct leaf page, the new tuple is put on the buffer at the root
>> page. When that buffer fills up, all the tuples in the buffer are
>> cascaded down to the buffers on the next level pages. And recursively,
>> whenever a buffer fills up at any level, it's flushed to the next level.
> [ scratches head... ] What's "fractal" about that? Or is that just a
> content-free marketing name for this technique?
>
>

And if that's all it is then I have some doubt about its patentability.
For one thing I'd be mildly surprised if there weren't prior art. But of
course, IANAL :-)

cheers

andrew


From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:48:36
Message-ID: 511BC3E4.1050708@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13.02.2013 18:20, Tom Lane wrote:
> Heikki Linnakangas<hlinnakangas(at)vmware(dot)com> writes:
>> The basic idea of a fractal tree index is to attach a buffer to every
>> non-leaf page. On insertion, instead of descending all the way down to
>> the correct leaf page, the new tuple is put on the buffer at the root
>> page. When that buffer fills up, all the tuples in the buffer are
>> cascaded down to the buffers on the next level pages. And recursively,
>> whenever a buffer fills up at any level, it's flushed to the next level.
>
> [ scratches head... ] What's "fractal" about that? Or is that just a
> content-free marketing name for this technique?

I'd call it out as a marketing name. I guess it's fractal in the sense
that all levels of the tree can hold "leaf tuples" in the buffers; the
structure looks the same no matter how deep you zoom, like a fractal..
But "Buffered" would be more appropriate IMO.

- Heikki


From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 16:51:14
Message-ID: 511BC482.60002@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13.02.2013 18:43, Andrew Dunstan wrote:
>
> On 02/13/2013 11:20 AM, Tom Lane wrote:
>> Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
>>> The basic idea of a fractal tree index is to attach a buffer to every
>>> non-leaf page. On insertion, instead of descending all the way down to
>>> the correct leaf page, the new tuple is put on the buffer at the root
>>> page. When that buffer fills up, all the tuples in the buffer are
>>> cascaded down to the buffers on the next level pages. And recursively,
>>> whenever a buffer fills up at any level, it's flushed to the next level.
>> [ scratches head... ] What's "fractal" about that? Or is that just a
>> content-free marketing name for this technique?
>
> And if that's all it is then I have some doubt about its patentability.
> For one thing I'd be mildly surprised if there weren't prior art. But of
> course, IANAL :-)

Agreed, but IANAL either. The papers the GiST buffering build algorithm
was based pre-dates Tokutek's fractal indexes, for starters. Of course,
all I know about fractal indexes is what I've read on some presentation
slides on the 'net, so I might be missing something.

- Heikki


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 17:00:59
Message-ID: EA7E8C03-7C58-4F85-8F55-24DDD9F6322B@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Yeah,it is just a fancy name for something that has nothing to do with fractals.I guess everything suave these days is fractal!

That said,the buffered concept itself looks really cool and should help us in large data sets.I am eager to get off the mark with it.

Will we be building the index from scratch? And how would we go about it?

We will need to be careful about the buffer size per node, in order to ensure that the pushing of tuples from nodes in large data sets does not become a substantial overhead.

Atri
Sent from my iPad

On 13-Feb-2013, at 22:21, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:

> On 13.02.2013 18:43, Andrew Dunstan wrote:
>>
>> On 02/13/2013 11:20 AM, Tom Lane wrote:
>>> Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
>>>> The basic idea of a fractal tree index is to attach a buffer to every
>>>> non-leaf page. On insertion, instead of descending all the way down to
>>>> the correct leaf page, the new tuple is put on the buffer at the root
>>>> page. When that buffer fills up, all the tuples in the buffer are
>>>> cascaded down to the buffers on the next level pages. And recursively,
>>>> whenever a buffer fills up at any level, it's flushed to the next level.
>>> [ scratches head... ] What's "fractal" about that? Or is that just a
>>> content-free marketing name for this technique?
>>
>> And if that's all it is then I have some doubt about its patentability.
>> For one thing I'd be mildly surprised if there weren't prior art. But of
>> course, IANAL :-)
>
> Agreed, but IANAL either. The papers the GiST buffering build algorithm was based pre-dates Tokutek's fractal indexes, for starters. Of course, all I know about fractal indexes is what I've read on some presentation slides on the 'net, so I might be missing something.
>
> - Heikki


From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 17:32:13
Message-ID: 99E63875-B164-4BA9-84C0-0374D040354E@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sent from my iPad

On 13-Feb-2013, at 22:21, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:

> On 13.02.2013 18:43, Andrew Dunstan wrote:
>>
>> On 02/13/2013 11:20 AM, Tom Lane wrote:
>>> Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
>>>> The basic fractal indexes is what I've read on some presentation slides on the 'net, so I might be missing something.
>

I think that buffering can be applied to BTree, R Tree and GisT in more or less the same manner.

Is there a way we can abstract the buffering part out of them all?

Atri


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 17:54:46
Message-ID: CA+U5nMLUCyChn1BrAwCvE3_qtbwp3fzrhZuCa+ocoaSLqtGjFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 13 February 2013 16:48, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:
> On 13.02.2013 18:20, Tom Lane wrote:
>>
>> Heikki Linnakangas<hlinnakangas(at)vmware(dot)com> writes:
>>>
>>> The basic idea of a fractal tree index is to attach a buffer to every
>>> non-leaf page. On insertion, instead of descending all the way down to
>>> the correct leaf page, the new tuple is put on the buffer at the root
>>> page. When that buffer fills up, all the tuples in the buffer are
>>> cascaded down to the buffers on the next level pages. And recursively,
>>> whenever a buffer fills up at any level, it's flushed to the next level.
>>
>>
>> [ scratches head... ] What's "fractal" about that? Or is that just a
>> content-free marketing name for this technique?
>
>
> I'd call it out as a marketing name. I guess it's fractal in the sense that
> all levels of the tree can hold "leaf tuples" in the buffers; the structure
> looks the same no matter how deep you zoom, like a fractal.. But "Buffered"
> would be more appropriate IMO.

I hope for their sake there is more to it than that. It's hard to see
how buffering can be patented.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 17:56:58
Message-ID: 511BD3EA.5040904@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 02/13/2013 09:54 AM, Simon Riggs wrote:

>> I'd call it out as a marketing name. I guess it's fractal in the sense that
>> all levels of the tree can hold "leaf tuples" in the buffers; the structure
>> looks the same no matter how deep you zoom, like a fractal.. But "Buffered"
>> would be more appropriate IMO.
>
> I hope for their sake there is more to it than that. It's hard to see
> how buffering can be patented.

Talk to Apple about that. It only needs to be worded correctly.

JD

>

--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fractal tree indexing
Date: 2013-02-13 18:34:19
Message-ID: 511BDCAB.2080803@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 02/13/2013 01:01 AM, Atri Sharma wrote:
> Hi all,
>
> Just a curiosity I couldnt control. I was recently reading about
> Fractal tree indexing
> (http://www.tokutek.com/2012/12/fractal-tree-indexing-overview/) and
> how TokuDB engine for MySQL is really working nicely with big data.
>
> I was wondering, do we have support for fractal tree indexing? I mean,
> it really does seem to help manage big data, so we could think of
> supporting it in some form for our large data set clients( if it is
> not happening already someplace which I have missed).

Sadly, fractal trees are an invention of Tokutek and are heavily and
publically patented. That's why I haven't pursued the idea, and indeed
why Tokutek hasn't developed a PostgreSQL plug-in.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


From: Daniel Farina <daniel(at)heroku(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-13 19:34:02
Message-ID: CAAZKuFYMcOsCFH_+im=dCx1xP8e4heyaGQk-v_JFbEL_0Ly9MQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 8:20 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
>> The basic idea of a fractal tree index is to attach a buffer to every
>> non-leaf page. On insertion, instead of descending all the way down to
>> the correct leaf page, the new tuple is put on the buffer at the root
>> page. When that buffer fills up, all the tuples in the buffer are
>> cascaded down to the buffers on the next level pages. And recursively,
>> whenever a buffer fills up at any level, it's flushed to the next level.
>
> [ scratches head... ] What's "fractal" about that? Or is that just a
> content-free marketing name for this technique?

The name in the literature is "Cache Oblivious Lookahead Array", aka
COLA. The authors also are founders of TokuTek, and seemed to have
take pains to ring-fence mentions of the algorithm with reference to
its patent.

Well, at least nobody can blame them for submarine patent action.

--
fdr


From: Greg Stark <stark(at)mit(dot)edu>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fractal tree indexing
Date: 2013-02-14 01:48:16
Message-ID: CAM-w4HOvnPuOiyWky3dtuYhXW_K+Un4VsLhWPE0=vdXOJ9+tbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 13, 2013 at 1:31 PM, Alexander Korotkov
<aekorotkov(at)gmail(dot)com> wrote:
> On Wed, Feb 13, 2013 at 4:51 PM, Greg Stark <stark(at)mit(dot)edu> wrote:
>>
>> Heikki was talking about a generic WAL record type that would just
>> store a binary delta between the version of the block when it was
>> locked and when it was unlocked. That would handle any extension
>> cleanly as far as data modification goes as long as the extension was
>> working through our buffer manager. It seems like an attractive idea
>> to me.
>
>
> It will, for sure, works well when atomic page changes are enough for us.
> However, some operations, for example, page splits, contain changes in
> multiple pages. Replaying changes in only some of pages is not fair. Now,
> it's hard for me to imagine how to generalize it into generic WAL record
> type.

I think multiple-page operations where you have all the pages locked
at the same time, like tuple updates for example, are fairly simple.
The existing WAL format can handle at most three such buffers in a
single record so we can just have a fixed size buffer large enough to
hold three buffers and perform the diff on the three when the
extension says it has completed an atomic update. The simplest API
which I suspect would suffice for virtually all users would be to tie
this to buffer locking and unlocking.

The types of records which this would not suffice for would be

a) things that need extra book-keeping during recovery in case some
later record was not recorded. We have only a few such records -- page
splits as you say -- and hopefully extensions wouldn't need them
because frankly they're pretty scary.

b) records that are needed not just to maintain consistency of the
data in the database but to provide some other behaviour -- for
instance the WAL records for locks that 2PC needs or the snapshot
records that hot standby needs. But then these types of records might
be more amenable to an extensible WAL format. Since the loss of them
wouldn't leave the database corrupted, just prevent that feature from
operating correctly.

--
greg


From: Andrew Borodin <borodin(at)octonica(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, josh(at)agliodbs(dot)com, daniel(at)heroku(dot)com, andrew(at)dunslane(dot)net
Subject: Re: Fractal tree indexing
Date: 2016-11-16 07:46:50
Message-ID: CAJEAwVE_8VDTV1Utfe1CmbVRCvVPtvHZnSKFdMf0rB5mELSLeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi hackers!

Here is prototype of procrastinating GiST. Or lazy GiST. Or buffered GiST.
Indeed, there is nothing fractal about it.

The concept is leaf tuples stall on internal pages. From time to time they
are pushed down in batches. This code is far from perfect, I've coded this
only for the research purposes.

I have tested code with insertion of random 3D cubes. On 1 million of
insertions classic GiST is 8% faster, on 3M performance is equal, on 30M
lazy GiST if 12% faster.
I've tested it with SSD disk, may be with HDD difference will be more
significant.
Test scenario is here https://github.com/x4m/postgres_g/blob/bufdev/test.sql

In theory, this is cache friendly implementation (but not cache oblivious)
and it must be faster even for small datasets without huge disk work. But
it has there extra cost of coping batch of tuples to palloc`d array,
couln't avoid that.

This is just a proof-of-concept for performance measrures:
1. make check fails for two tests
2. WAL is broken
3. code is a mess in some places

I'm not sure 12% of performance worth it. I'll appreciate any ideas on what
to do next.

Best regards, Andrey Borodin.

2013-02-13 22:54 GMT+05:00 Simon Riggs <simon(at)2ndquadrant(dot)com>:

> On 13 February 2013 16:48, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
> wrote:
> > On 13.02.2013 18:20, Tom Lane wrote:
> >>
> >> Heikki Linnakangas<hlinnakangas(at)vmware(dot)com> writes:
> >>>
> >>> The basic idea of a fractal tree index is to attach a buffer to every
> >>> non-leaf page. On insertion, instead of descending all the way down to
> >>> the correct leaf page, the new tuple is put on the buffer at the root
> >>> page. When that buffer fills up, all the tuples in the buffer are
> >>> cascaded down to the buffers on the next level pages. And recursively,
> >>> whenever a buffer fills up at any level, it's flushed to the next
> level.
> >>
> >>
> >> [ scratches head... ] What's "fractal" about that? Or is that just a
> >> content-free marketing name for this technique?
> >
> >
> > I'd call it out as a marketing name. I guess it's fractal in the sense
> that
> > all levels of the tree can hold "leaf tuples" in the buffers; the
> structure
> > looks the same no matter how deep you zoom, like a fractal.. But
> "Buffered"
> > would be more appropriate IMO.
>
> I hope for their sake there is more to it than that. It's hard to see
> how buffering can be patented.
>
> --
> Simon Riggs http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>

Attachment Content-Type Size
lazygist_v1.diff text/plain 16.1 KB