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 <jeongs@cs.man.ac.uk>)
Список pgsql-hackers
Seung-Hyun Jeong <jeongs@cs.man.ac.uk> 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
Дата:
Сообщение: Re: Help Building PostgreSQL on Solaris
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Intermediate report for AIX 5L port