problem with calling c functions

From: Richard Harvey Chapman <hchapman(at)3gfp(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: problem with calling c functions
Date: 2000-09-22 00:25:28
Message-ID: Pine.LNX.4.10.10009211719270.3383-100000@smile.3gfp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'll just show an example:

I have:

int myfunc (text *a, text* b)
{
return(12);
}

in psql:

test=# CREATE FUNCTION myfunc(text, text)
test-# RETURNS integer
test-# AS
'/home/hchapman/src/nms/wwp_database/c-functions/call_dynamic.so'
test-# LANGUAGE 'C';
CREATE
test=# SELECT myfunc('aa','ss') as result;
result
--------
12
(1 row)

test=# SELECT myfunc('aa',NULL) as result;
result
--------

(1 row)

test=#

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Harvey Chapman 2000-09-22 00:28:03 Re: problem with calling c functions
Previous Message Richard Harvey Chapman 2000-09-22 00:19:14 RE: problem with CREATE FUNCTION