picksplit algorithm

From: "jorge alberto" <jorge(dot)is(dot)a(dot)geek(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: picksplit algorithm
Date: 2006-12-08 17:04:29
Message-ID: 7e7297630612080904y60619e27l33618dbd3b06952@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In rtree_gist.c
postgresql version 8.0.9

maxoff = entryvec->n - 1;
nbytes = (maxoff + 2) * sizeof(OffsetNumber);
listL = (OffsetNumber *) palloc(nbytes);

why the maximun offset is set to entryvec->n-1 ?

why nbytes is set to maxoff + 2 ?

I hope you can help me
regards
jorge

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2006-12-08 17:55:09 Re: Load distributed checkpoint
Previous Message Kevin Grittner 2006-12-08 17:01:47 Re: Load distributed checkpoint