Re: can I use standard template library in server-side C functions? - Mailing list pgsql-novice

From Tom Lane
Subject Re: can I use standard template library in server-side C functions?
Date
Msg-id 29250.1097091729@sss.pgh.pa.us
Whole thread Raw
In response to can I use standard template library in server-side C functions?  (Zhenchang Xing <xing@cs.ualberta.ca>)
List 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 by date:

Previous
From: Zhenchang Xing
Date:
Subject: can I use standard template library in server-side C functions?
Next
From: "Joe Erickson"
Date:
Subject: Re: Brand New User (I hope)