From: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Wrap access to Oid in HeapTupleHeader |
Date: | 2002-07-01 15:04:01 |
Message-ID: | d8q0iugp1jaccqus19co089jh9vstn1pk0@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
On Mon, 01 Jul 2002 09:46:41 -0400, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:
>Manfred Koizar <mkoi-pg(at)aon(dot)at> writes:
>> . the heap tuple header is already formatted, i.e. t_hoff is valid
>
>I think the latter test is unnecessary
Yes, currently.
> and potentially dangerous;
That's the reason, I explicitly mentioned it.
>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.
This was actually the case in one or two places; I had to change the
order of assignments there. The code does not contain too many places
where a heap tuple header is built. If the assertions break the code,
we (or in this case: I) have to fix it. I need the assertions to find
those spots, if there are any left.
>I do not see the point of this in any case.
I see you have read my proposal on -hackers in the meantime. Does
that make it clearer?
> regards, tom lane
Thanks for reviewing my patch!
Servus
Manfred
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-07-01 15:10:20 | Re: Wrap access to Oid in HeapTupleHeader |
Previous Message | Bruce Momjian | 2002-07-01 14:15:42 | Re: [PATCHES] Reduce heap tuple header size |