Re: [GENERAL] Trying to make functions in 'C'

Поиск
Список
Период
Сортировка
От selkovjr@mcs.anl.gov
Тема Re: [GENERAL] Trying to make functions in 'C'
Дата
Msg-id 199905162023.PAA16291@antares.mcs.anl.gov
обсуждение исходный текст
Ответ на Trying to make functions in 'C'  ("fabian baena" <fabbaena@hotmail.com>)
Список pgsql-general
> I'm tying to learn how to make function in 'C'.
> I'm trying to compile a program I made in 'C'.
> The command I gave were:
>
> % gcc -fPIC -c addone.c -I/usr/local/pgsql/include
> % ld -G -Bdynamic -o addone.so addone.o
>
> and created the function in postgres like this:
>
>          CREATE FUNCTION add_one(int4) RETURNS int4
>               AS './addone.so' LANGUAGE 'c';
                   ^^^^^^^^^^^^^
one must provide an absolute path here

--Gene

В списке pgsql-general по дате отправления:

Предыдущее
От: "fabian baena"
Дата:
Сообщение: Trying to make functions in 'C'
Следующее
От: Michael Jenner
Дата:
Сообщение: Re: RH 6.0 and PostgreSQL