From: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
---|---|
To: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: Fast GiST index build |
Date: | 2011-07-14 20:53:55 |
Message-ID: | 4E1F5763.9090109@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 14.07.2011 23:41, Alexander Korotkov wrote:
> Do you think using "rightlink" as pointer to parent page is possible during
> index build? It would allow to simplify code significantly, because of no
> more need to maintain in-memory structures for parents memorizing.
I guess, but where do you store the rightlink, then? Would you need a
final pass through the index to fix all the rightlinks?
I think you could use the NSN field. It's used to detect concurrent page
splits, but those can't happen during index build, so you don't need
that field during index build. You just have to make it look like an
otherwise illegal NSN, so that it won't be mistaken for a real NSN after
the index is built. Maybe add a new flag to mean that the NSN is
actually invalid.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-07-14 20:59:24 | Re: Need help understanding pg_locks |
Previous Message | Florian Pflug | 2011-07-14 20:53:15 | Re: Need help understanding pg_locks |