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

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

From
Zhenchang Xing
Date:
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?

thanks
zhenchang


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

From
Tom Lane
Date:
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