Hello, I want to write a "BackgroundWorker" in C++ (have lots of C++ code and libs to reuse).

I found " 35.9.13 Using C++ for Extensibility " in the 9.3/4 documentation who says it's possible and gives some guidelines for source-code writing.
Compiling is not too difficult if one understands this chapter.

However I coudn't find any doc. about how to solve the problem of linking C++ code and libs into the .so of my extension, and nothing to solve the runtime-loading problem of the c++ specific .so files ( for ex. to make work a simple usage std::string )

I started my tests by cloning the contrib/worker_spi code, and when transforming the code into C++, I could only note that C++ is not supported in the provided Makefiles.

I also found some rather old (2008) message in this mailing list which addresses the same subject: http://www.postgresql.org/message-id/4938e5ed.60...@acm.org: Mostly Harmless: Welcoming our C++ friends
with patches that didn't reach their way into the source-distrib , I guess.

Is there something more actual about this subject that could help ?.

Jacques K.

Reply via email to