Re: C function to return tuple

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marios Vodas <mvodas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C function to return tuple
Date: 2010-09-26 16:16:09
Message-ID: 27009.1285517769@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marios Vodas <mvodas(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitriy Igrishin 2010-09-26 16:21:05 Re: Large objects.
Previous Message Robert Haas 2010-09-26 16:14:38 Re: Large objects.