Re: Wrap access to Oid in HeapTupleHeader - Mailing list pgsql-patches

From Tom Lane
Subject Re: Wrap access to Oid in HeapTupleHeader
Date
Msg-id 9501.1025531201@sss.pgh.pa.us
Whole thread Raw
In response to Wrap access to Oid in HeapTupleHeader  (Manfred Koizar <mkoi-pg@aon.at>)
Responses Re: Wrap access to Oid in HeapTupleHeader
List pgsql-patches
Manfred Koizar <mkoi-pg@aon.at> writes:
> it indroduces two
> pre-conditions for accessing the oid:
> .  the relation has oids
> .  the heap tuple header is already formatted, i.e. t_hoff is valid

I think the latter test is unnecessary and potentially dangerous;
it could break code that tries to access OID in a
not-yet-completely-built header.  The test that insists t_hoff is valid
before one can *set* OID is even more likely to cause trouble.
I do not see the point of this in any case.

            regards, tom lane



pgsql-patches by date:

Previous
From: Manfred Koizar
Date:
Subject: Wrap access to Oid in HeapTupleHeader
Next
From: Bruce Momjian
Date:
Subject: Re: Changes in /contrib/fulltextindex