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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zhenchang Xing <xing(at)cs(dot)ualberta(dot)ca>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: can I use standard template library in server-side C functions?
Date: 2004-10-06 19:42:09
Message-ID: 29250.1097091729@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Zhenchang Xing <xing(at)cs(dot)ualberta(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Joe Erickson 2004-10-06 20:16:37 Re: Brand New User (I hope)
Previous Message Zhenchang Xing 2004-10-06 17:10:31 can I use standard template library in server-side C functions?