server-side extension in c++

From: Igor <igor(at)carcass(dot)ath(dot)cx>
To: pgsql-general(at)postgresql(dot)org
Subject: server-side extension in c++
Date: 2010-03-22 19:46:43
Message-ID: 201003222146.43287.igor@carcass.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

Is there an easy way to add c++ files to my simple pgsql module ? My Makefile
is as follows -

===
MODULES = pg_uservars
DATA_built = pg_uservars.sql
PGXS := $(shell pg_config --pgxs)
include $(PGXS)
===

I've got "pg_uservars.c" and "hv.cc" and I'd like to compile hv.cc via g++.
I'm aware of c++ name [de]mangling, just looking if there's a standard way of
using C++ when it comes to pgxs.

--
Best Regards,
Igor Shevchenko

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-03-22 19:48:51 Re: pgreplay log file replayer released
Previous Message Miguel Angel Hernandez Moreno 2010-03-22 19:31:53 Re: recuperar nodo en estado 3