problem with calling c functions - Mailing list pgsql-general

From Richard Harvey Chapman
Subject problem with calling c functions
Date
Msg-id Pine.LNX.4.10.10009211719270.3383-100000@smile.3gfp.com
Whole thread Raw
Responses Re: problem with calling c functions
List 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=#


pgsql-general by date:

Previous
From: Richard Harvey Chapman
Date:
Subject: RE: problem with CREATE FUNCTION
Next
From: Richard Harvey Chapman
Date:
Subject: Re: problem with calling c functions