Re: HeapTupleData.t_self garbage values - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: HeapTupleData.t_self garbage values
Date
Msg-id 4B98FF75020000250002FC9E@gw.wicourts.gov
Whole thread Raw
In response to Re: HeapTupleData.t_self garbage values  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: HeapTupleData.t_self garbage values
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "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.
> What that comment is recommending is
> 
>     ItemPointerSetInvalid(&(tuple.t_self));
Aren't those tuples pointing to a disk buffer?  I know how to set an
invalid pointer, but I thought that was only for manufactured
tuples?
-Kevin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: HeapTupleData.t_self garbage values
Next
From: Greg Stark
Date:
Subject: Re: [patch] build issues on Win32