471,050 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

pgsql function using C++?, or at least C interfacing with C++ lib?

Hello,

I've got a C++ library I need to use, and I want to use it from a pgsql
function.
Would anyone happen to have any examples of how to accomplish something
like this?
I see examples of C-based functions for pgsql (like dbsize, etc, in
contrib).

Which way should I go about this?

1) C based function, calling a C++ library (is this possible?)
2) C++ based function, calling a C++ library (I read in the pgsql docs
that compiling C++ code for use with pgsql is either partially
incompatible, or just a bad idea?)

Also note that I would like to pass the function the following arguments:
int4, _varchar (array of varchars)

Any help would be appreciated, I'm not incredibly experienced in these
matters.

Thanks,
Eric

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
0 2071

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Google Mike | last post: by
3 posts views Thread by D. Stimits | last post: by
13 posts views Thread by Erick Papadakis | last post: by
8 posts views Thread by Victor B. Berdin | last post: by
7 posts views Thread by Jim Crate | last post: by
reply views Thread by Google Mike | last post: by
7 posts views Thread by ghulands | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.