Re: HeapTupleData.t_self garbage values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HeapTupleData.t_self garbage values
Дата
Msg-id 27590.1268339117@sss.pgh.pa.us
обсуждение исходный текст
Ответ на HeapTupleData.t_self garbage values  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: HeapTupleData.t_self garbage values
Список pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> According to htup.h:
>  * t_self and t_tableOid should be valid if the HeapTupleData points
>  * to a disk buffer, or if it represents a copy of a tuple on disk.
>  * They should be explicitly set invalid in manufactured tuples.
> In the heap_hot_search_buffer function of heapam.c this is not true.
> I can't find a clear explanation of why that is.  I'm assuming "it
> just doesn't matter" here, but at a minimum it seems worth a
> comment.  It's not immediately obvious to me what the random garbage
> from the stack would be replaced with if we were to try to make the
> above comment true.

What that comment is recommending is
ItemPointerSetInvalid(&(tuple.t_self));
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: HeapTupleData.t_self garbage values
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: HeapTupleData.t_self garbage values