| From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Teodor Sigaev <teodor(at)sigaev(dot)ru> |
| Subject: | Re: unnecessary code in_bt_split |
| Date: | 2008-08-05 16:03:25 |
| Message-ID: | 489879CD.2000306@sun.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Tom Lane napsal(a):
> Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> I'm thinking we should split PageGetTempPage into two versions:
>
> PageGetTempPage: get a temp page the same size as the given page,
> but don't initialize its contents at all (so, just a thin wrapper
> for palloc). This could be used by _bt_split, as well as
> GinPageGetCopyPage and GistPageGetCopyPage.
>
> PageGetTempPageCopySpecial: get a temp page, PageInit it, and
> copy the special space from the given page. The only customer
> for this is gistplacetopage(), so maybe we don't even want it,
> rather than just doing the work right in gistplacetopage()?
>
> You could also make an argument for PageGetTempPageCopy() which'd just
> copy the source page verbatim, thus replacing GinPageGetCopyPage and
> GistPageGetCopyPage.
Sounds good I will look on it.
Zdenek
--
Zdenek Kotala Sun Microsystems
Prague, Czech Republic http://sun.com/postgresql
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Markus Wanner | 2008-08-05 16:13:02 | Re: Automatic Client Failover |
| Previous Message | Gregory Stark | 2008-08-05 15:50:42 | Re: Status of DISTINCT-by-hashing work |