| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера