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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: "Eric Parusel" <lists(at)globalrelay(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: pgsql function using C++?, or at least C interfacing with C++ lib?
Date: 2004-10-17 03:56:58
Message-ID: 4582.1097985418@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dann Corbit" <DCorbit(at)connx(dot)com> writes:
>> I've got a C++ library I need to use, and I want to use
>> it from a pgsql function.

> If you want to do this, publish an interface in your C++ library with
> the interface functions declared as extern "C"

Note that the backend does not incorporate any C++ library support,
which is rather a severe handicap. For instance it will probably
not work to use catch/throw constructs.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2004-10-17 04:05:11 Re: dealing with invalid date
Previous Message Mike Nolan 2004-10-17 03:50:58 Re: dealing with invalid date