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

HeapTupleHeader accessor macros

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: pgsql-patches(at)postgresql(dot)org
Subject: HeapTupleHeader accessor macros
Date: 2002-05-12 01:35:51
Message-ID: jcfrdu40qpg6cm6mllklb1ug3p90ugkmd1@4ax.com (view raw or flat)
Thread:
Lists: pgsql-patches
This patch wraps all accesses to t_xmin, t_cmin, t_xmax, and t_cmax in
HeapTupleHeaderData in setter and getter macros called
HeapTupleHeaderGetXmin, HeapTupleHeaderSetXmin etc.

It also introduces a "virtual" field xvac by defining
HeapTupleHeaderGetXvac and HeapTupleHeaderSetXvac.  Xvac is used by
VACUUM, in fact it is stored in t_cmin.

This patch doesn't change any behaviour, it just (hopefully) makes the
source code more readable.  It is meant as a first step toward an
upcoming change in HeapTupleHeader, which will reduce on-disk tuple
size by four bytes.

Regression tests have been passed (except geometry, which always fails
on my machine).  Please apply this patch (after my bitmaplen patch)
for 7.3.

It worked for 7.2 before I updated my cvs HEAD revision and recreated
the patch.  If cosmetic changes are wanted for 7.2, I'll make a 7.2
version available.

Servus
 Manfred

Responses

pgsql-patches by date

Next:From: Joe ConwayDate: 2002-05-12 03:28:58
Subject: Re: Set Returning Functions (SRF) - request for patch review
Previous:From: Ian BarwickDate: 2002-05-11 16:01:46
Subject: Re: Set Returning Functions (SRF) - request for patch review and comment

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