From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jose Mendoza <unixos(at)prodigy(dot)net(dot)mx> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgresql function in C++ |
Date: | 2004-11-28 21:04:08 |
Message-ID: | 20143.1101675848@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jose Mendoza <unixos(at)prodigy(dot)net(dot)mx> writes:
> I would like if it is possible to build a PostgreSQL function in C++.
You can do this to the extent that you're using C++ as "a better C".
As soon as you get into any of the interesting features of the language,
like exceptions or RTTI, you're going to have problems due to lack of
library support --- libstdc++ isn't linked into the backend.
You could force it in there if you don't mind using a custom-built
server, but I'm not sure of the potential gotchas of putting libstdc++
into the backend. One thing I'm pretty sure will not work in any case
is C++ exceptions; the backend uses its own setjmp-based error recovery
and that's not going to play nicely with C++.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-11-28 21:05:49 | Re: Retrieving values of int8 numeric field using ODBC with LInux clients. |
Previous Message | Jose Mendoza | 2004-11-28 20:47:02 | Retrieving values of int8 numeric field using ODBC with LInux clients. |