Re: btree split logic is fragile in the presence of lar ge index items

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: btree split logic is fragile in the presence of lar ge index items
Date: 2000-07-19 18:13:48
Message-ID: 22014.964030428@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM> writes:
>> Do you not like the proposal I was suggesting? I thought it
>> was pretty much what you said yourself a few months ago...

> Do not add TID to key but store key anywhere in duplicate chain and
> just read lefter child page while positioning index scan, as we do
> right now for partial keys?

> This will result in additional reads but I like it much more than
> current "logic"...

Offhand it seems good to me too. For the normal case where there are
many keys per page and not so many duplicates, an unneeded read should
be rare anyway.

I will need to study Lehman & Yao a little more to ensure they don't
have a problem with it, but if not I'll do it that way. (I was
surprised to realize that Lehman is the same Phil Lehman I knew in
grad school ... in fact he was probably working on this paper when
I knew him. Small world ain't it.)

> But if you're going to change btree then
> please do it asap - I hope to begin btree redo/undo implementation
> in 2-3 days, just after heap...

Slavedriver ;-) ... I'll see what I can do ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikhail Terekhov 2000-07-19 19:06:09 Re: Untrusted PL/Tcl?
Previous Message Mikheev, Vadim 2000-07-19 16:59:57 RE: btree split logic is fragile in the presence of lar ge index items