Creating a Function with C that returns bytea

Поиск
Список
Период
Сортировка
От David Busby
Тема Creating a Function with C that returns bytea
Дата
Msg-id 3D29D8D3.8080009@pnts.com
обсуждение исходный текст
Ответы Re: Creating a Function with C that returns bytea  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
List,
    I'm building this function in C that will return a bytea (hopefully) and
cannot get it to return the bytea value.  Am I missing something really
simple


My code is similar to this:

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




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

Предыдущее
От: Doug Fields
Дата:
Сообщение: Re: WAL recycling, Linux 2.4.18
Следующее
От: Robert L Mathews
Дата:
Сообщение: Re: I am being interviewed by OReilly