| От | Goran Thyni |
|---|---|
| Тема | Re: [INTERFACES] using c++ for functions |
| Дата | |
| Msg-id | 35AA7183.9310C286@bildbasen.se обсуждение исходный текст |
| Ответ на | using c++ for functions (David GROSS <David.Gross@wanadoo.fr>) |
| Список | pgsql-interfaces |
David GROSS wrote:
>
> Hello,
>
> I would like to know if it is possible to use C++ code
> to define new functions in Postgres, something like :
>
> create function ... returns ... as '...' language 'c++';
>
> It works very well for C functions, but with C++ (on unix/linux
> systems), postgres
> can't find the function in the symbol table.
>
David,
C++ does many things implicitely (behind your back)
and is therefore not suitable for embedded code
such as device drivers och loadable function.
Besides, I can see no reasons to choose C++ over C for
small things like this (except political, of course).
(Flames by private mail, please)
Hopefully we will be able to use PL/pgSQL or PL/Perl
for this in future releases of pgsql.
best regards,
Göran.
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера