Re: [HACKERS] function question yet again - Mailing list pgsql-hackers

From Sevo Stille
Subject Re: [HACKERS] function question yet again
Date
Msg-id 38A95F61.701B458C@ip23.net
Whole thread Raw
In response to function question yet again  (Michael Meskes <meskes@postgresql.org>)
Responses Re: [HACKERS] function question yet again
List pgsql-hackers
Michael Meskes wrote:
> 
> Is it possible to define a function in language 'C' that needs more
> libraries to work? I've got a small example of a function that works like a
> charm when run against from a binary. However if I put this function inside
> the server and execute it I get
> 
> ERROR:  parser: parse error at or near ""
> 
> Not exactly an error message that explains itself. :-)

Actually, it is very suggestive of quoting or escaping errors.
Presumably your statement terminates somewhere where you would not
expect it. 
> I have put my function into a shared library to load it, but the library
> itself needs other libraries. Is this at all possible?

If the system knows how to find it, absolutely. That is, whatever you
depend on will have to be in a system or pgsql library directory.  

Sevo


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] function defined in libpq?
Next
From: "Jeff MacDonald "
Date:
Subject: Most Advanced