Seung-Hyun Jeong <jeongs(at)cs(dot)man(dot)ac(dot)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