Re: Calling 'c' function from PostGreSQL

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: Calling 'c' function from PostGreSQL
Дата
Msg-id 20010409112117.8626114EE62@gerstung3.net-lab.net
обсуждение исходный текст
Ответ на Calling 'c' function from PostGreSQL  ("Atul" <atulk@newgen.co.in>)
Список 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 по дате отправления:

Предыдущее
От: "Atul"
Дата:
Сообщение: Calling 'c' function from PostGreSQL
Следующее
От: Patrice Espié
Дата:
Сообщение: Lock : How to know if a row is locked ?