Creating a Function with C that returns bytea

From: David Busby <busby(at)pnts(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Creating a Function with C that returns bytea
Date: 2002-07-08 18:24:19
Message-ID: 3D29D8D3.8080009@pnts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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;
}

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2002-07-08 18:27:48 Re: I am being interviewed by OReilly
Previous Message Christoph Dalitz 2002-07-08 18:23:53 Re: Linux 7.1 dependency problems