Re: can I use standard template library in server-side C functions?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: can I use standard template library in server-side C functions?
Дата
Msg-id 29250.1097091729@sss.pgh.pa.us
обсуждение исходный текст
Ответ на can I use standard template library in server-side C functions?  (Zhenchang Xing <xing@cs.ualberta.ca>)
Список pgsql-novice
Zhenchang Xing <xing@cs.ualberta.ca> writes:
> The documentation says: User-defined functions can be written in C (or a
> language that can be made compatible with C, such as C++). So I suppose it
> should be ok to use STL or things like Boost Graph Library in server-side
> C functions, right?

I doubt it will work.  The backend is C and does not include the C++
library.  You could try dynamically loading the C++ library but it seems
quite unlikely that global behavior (like exception trapping) would work
correctly.

            regards, tom lane

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

Предыдущее
От: Zhenchang Xing
Дата:
Сообщение: can I use standard template library in server-side C functions?
Следующее
От: "Joe Erickson"
Дата:
Сообщение: Re: Brand New User (I hope)