Skip site navigation (1) Skip section navigation (2)

htup and bufpage API clean up

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: htup and bufpage API clean up
Date: 2008-10-29 14:08:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Attached patch contains code cleanup in htup.h nad bufpage.[ch]. This patch is 
part of pg upgrade project. Idea of this patch is to remove any direct access to 
PageHeader and HeapTupleHeader. I already sent more complex patch including 
mutli page version control last commitfest. This patch does not contain multi 
page version control. I will send it separately.

Main changes in bufpage:
- Remove PageGetItem/PageGetItemId. It has been replaced by PageGetHeapTuple and 
- Most macros are converted to functions. It will be necessary for following patch.

Main changes in htup:
- htup.c is created
- Most macros HeapTupleHeader* are removed
- Add complete set of HeapTuple* functions
- Macros for "DatumTupleHeader" still remain, because they are use in PL

Other changes are related to the new API.

Several patches in a patch queue uses old API. It will require consolidation.


Zdenek Kotala              Sun Microsystems
Prague, Czech Republic

Attachment: pgu_page_tuple_api.patch.bz2
Description: application/x-bzip (44.7 KB)


pgsql-hackers by date

Next:From: Zdenek KotalaDate: 2008-10-29 14:40:58
Subject: Re: htup and bufpage API clean up
Previous:From: Tom LaneDate: 2008-10-29 14:07:20
Subject: Re: WIP patch: convert SQL-language functions to return tuplestores

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group