PostgreSQL external functions under OpenBSD

From: Alexey Vyskubov <alexey(at)byte-unix(dot)piter-press(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: PostgreSQL external functions under OpenBSD
Date: 2000-01-13 13:56:41
Message-ID: 20000113165641.A5810@byte-unix.piter-press.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello.

I was trying to compile external function for PostgreSQL under OpenBSD 2.6 and
failed.

I did:

gcc -fpic -c -o test.o test.c
ld -Nshareable -o test.so test.o

Then I created postgres function from test.so module. But it doesn't work
showing:
ERROR: init_fcache: Cache lookup failed for procedure 139520

Could somebody point me where I did something wrong?

P.S. I used following code

DROP FUNCTION test();
CREATE FUNCTION test() RETURNS int4
AS '/usr/local/pgsql/lib/test.so' LANGUAGE 'c';

--
Alexey

Browse pgsql-general by date

  From Date Subject
Next Message admin 2000-01-13 14:22:34 Re: [GENERAL] searching oid's
Previous Message admin 2000-01-13 13:38:45 searching oid's