dbTalk Databases Forums  

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

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss can I use standard template library in server-side C functions? in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zhenchang Xing
 
Posts: n/a

Default can I use standard template library in server-side C functions? - 10-06-2004 , 12:10 PM






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


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: can I use standard template library in server-side C functions? - 10-06-2004 , 02:42 PM






Zhenchang Xing <xing (AT) cs (DOT) ualberta.ca> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.