Re: Is a syscache tuple more like an on-disk tuple or a freshly made one? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?
Date
Msg-id 1618.1460760465@sss.pgh.pa.us
Whole thread Raw
In response to Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> On 04/15/16 18:13, Tom Lane wrote:
>> You could use heap_copy_tuple_as_datum().

> Thanks, that looks like what the doctor ordered.

> For pre-9.4, would the equivalent be basically
> heap_form_tuple applied to the results of heap_deform_tuple ?

You could do that, or you could do what heap_copy_tuple_as_datum
does, ie copy the tuple and then poke the appropriate header
field values into it.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?
Next
From: Michael Paquier
Date:
Subject: Re: Optimization for updating foreign tables in Postgres FDW