Re: reading row in backend - Mailing list pgsql-hackers

From Tom Lane
Subject Re: reading row in backend
Date
Msg-id 29282.958432950@sss.pgh.pa.us
Whole thread Raw
In response to Re: reading row in backend  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Responses Re: reading row in backend
List pgsql-hackers
Patrick Welche <prlw1@newn.cam.ac.uk> writes:
>> Um ... doesn't that line number in the COPY source data help any?

> Unfortunately not - in fact the 2nd large tuple allegedly has a smaller
> line number than the first :(

Hmm, are you claiming that COPY is reporting a bogus line number?
If so, that needs to be looked into.

> Am I barking up the wrong tree if I think that the HeapTuple contains the
> actual data? The first number in it would the primary key...

Type HeapTuple is a pointer to a HeapTupleData, which is just
administrative overhead.  The t_data field of the HeapTupleData
points at the actual tuple (a HeapTupleHeaderData followed by
null-values bitmap and then the user data).  See include/access/htup.h
        regards, tom lane


pgsql-hackers by date:

Previous
From: Patrick Welche
Date:
Subject: Re: reading row in backend
Next
From: Patrick Welche
Date:
Subject: Re: reading row in backend