Re: C function to return tuple

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C function to return tuple
Дата
Msg-id 27009.1285517769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C function to return tuple  (Marios Vodas <mvodas@gmail.com>)
Ответы Re: C function to return tuple  (Marios Vodas <mvodas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Large objects.
Следующее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: Large objects.