Re: C function to return tuple - Mailing list pgsql-hackers

From Tom Lane
Subject Re: C function to return tuple
Date
Msg-id 27009.1285517769@sss.pgh.pa.us
Whole thread Raw
In response to C function to return tuple  (Marios Vodas <mvodas@gmail.com>)
Responses Re: C function to return tuple
List pgsql-hackers
Marios Vodas <mvodas@gmail.com> writes:
> My problem is that I don't know how to construct the d_type tuple in the c
> function.

Seems like the main problem with that function is that you're passing
an uninitialized "nulls" array to heap_form_tuple.

I kinda wonder why you are using a fixed-length values array together
with a variable-length, dynamically allocated nulls array, but that'
just odd style not wrong in itself.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Large objects.
Next
From: Dmitriy Igrishin
Date:
Subject: Re: Large objects.