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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?
Дата
Msg-id 1618.1460760465@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?  (Chapman Flack <chap@anastigmatix.net>)
Список 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 по дате отправления:

Предыдущее
От: Chapman Flack
Дата:
Сообщение: Re: Is a syscache tuple more like an on-disk tuple or a freshly made one?
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Optimization for updating foreign tables in Postgres FDW