"Billow Gao" <billowgy@gmail.com> writes:
> Also, when I compile it, I had warning:
> test.c:121: warning: assignment makes pointer from integer without a cast
> The line is:
> tuple = heap_form_tuple( tupdesc, &dtvalues, &isNull );
That part is because you didn't #include access/heapam.h, where
heap_form_tuple is declared. If you didn't get a warning about it
not being declared, you do not have warnings turned up high enough.
regards, tom lane