Re: Wrap access to Oid in HeapTupleHeader

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrap access to Oid in HeapTupleHeader
Дата
Msg-id 9501.1025531201@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Wrap access to Oid in HeapTupleHeader  (Manfred Koizar <mkoi-pg@aon.at>)
Ответы Re: Wrap access to Oid in HeapTupleHeader  (Manfred Koizar <mkoi-pg@aon.at>)
Список 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 по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Wrap access to Oid in HeapTupleHeader
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Changes in /contrib/fulltextindex