Re: Creating a Function with C that returns bytea

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating a Function with C that returns bytea
Дата
Msg-id 3636.1026222301@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating a Function with C that returns bytea  (David Busby <busby@pnts.com>)
Список pgsql-general
David Busby <busby@pnts.com> writes:
> My code is similar to this:

> #include <necessary files>
> bytea *func() {
>     bytea *x = palloc(36);
>     // code to load the 36 bytes here
>     return x;
> }

Are you setting the bytea's length word correctly?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Iavor Raytchev"
Дата:
Сообщение: Re: [INTERFACES] pgaccess problems
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: I am being interviewed by OReilly