Re: about heap_insert() function

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: about heap_insert() function
Дата
Msg-id
1640.1008029098@sss.pgh.pa.us
Ответ на
about heap_insert() function (Seung-Hyun Jeong)
Список
Дерево обсуждения
about heap_insert() function Seung-Hyun Jeong <jeongs@cs.man.ac.uk>
Re: about heap_insert() function Tom Lane <tgl@sss.pgh.pa.us>
Seung-Hyun Jeong  writes:
> I'm trying to insert tuples into a existing table by using intenal
> functions bypassing the query executor.

> Now, what I don't know is how to set values to HeapTuple tup.
> The following data structure shows the fields that I need to fill in.  

You shouldn't be touching any of that directly.  You want to use
heap_formtuple to build the tuple.  All you need for that is a tuple
descriptor (which you get from the open relation), and two arrays of
Datum values and null flags.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Doug Royer
Дата:
От: Thomas Lockhart
Дата:
FAQ