Re: Calling 'c' function from PostGreSQL - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: Calling 'c' function from PostGreSQL
Date
Msg-id 20010409112117.8626114EE62@gerstung3.net-lab.net
Whole thread Raw
In response to Calling 'c' function from PostGreSQL  ("Atul" <atulk@newgen.co.in>)
List pgsql-novice
On 09 Apr 2001 16:17:08 +0530, Atul wrote:
> Is it possible to call a language 'C'  function from a PL/pgSQL function. I have the following code:
>
> // file myfunc.c
> #include "postgres.h"
>
> text* myfunc();
>
> text* myfunc()
> {
>  text* ch;
>  *ch = '1,2';
>  return ch;
> }
>
> // C file ends here



Did you compile it with -fPIC ?

--
 Nabil Sayegh



pgsql-novice by date:

Previous
From: "Atul"
Date:
Subject: Calling 'c' function from PostGreSQL
Next
From: Patrice Espié
Date:
Subject: Lock : How to know if a row is locked ?