Re: [GENERAL] Shared Objects (Dynamic loading) - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: [GENERAL] Shared Objects (Dynamic loading)
Date
Msg-id 20060824121906.GA94438@winnie.fuhr.org
Whole thread Raw
In response to Re: [GENERAL] Shared Objects (Dynamic loading)  ("Jasbinder Bali" <jsbali@gmail.com>)
List pgsql-novice
On Thu, Aug 24, 2006 at 03:51:28AM -0400, Jasbinder Bali wrote:
> Actually my function accepts char, so what should be the SQL analogue for
> that in postgres?

You might be able to declare the SQL function to accept a cstring
argument but you really should write the code to conform to
PostgreSQL's preferred (version-1) calling conventions.  That might
mean writing simple wrapper function that calls the real function.

If you're doing text manipulation then it would probably be a lot
easier in PL/Perl than in C.

--
Michael Fuhr

pgsql-novice by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: [GENERAL] Shared Objects (Dynamic loading)
Next
From: "Jasbinder Bali"
Date:
Subject: Dynamic loading (datatype mismatch)