Re: Proposal for Prototype Implementation to Enhance C/C++ Interoperability in PostgreSQL - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal for Prototype Implementation to Enhance C/C++ Interoperability in PostgreSQL
Date
Msg-id 50312.1683472738@sss.pgh.pa.us
Whole thread Raw
In response to Proposal for Prototype Implementation to Enhance C/C++ Interoperability in PostgreSQL  ("盏一" <w@hidva.com>)
Responses Re: Proposal for Prototype Implementation to Enhance C/C++ Interoperability in PostgreSQL
Re: Proposal for Prototype Implementation to Enhance C/C++ Interoperability in PostgreSQL
List pgsql-hackers
"=?utf-8?B?55uP5LiA?=" <w@hidva.com> writes:
> The proposed implementation can significantly improve the interoperability between C and C++ code in PostgreSQL. It
allowsfor seamless integration of C++ code with PostgreSQL, without the need for complex workarounds or modifications
tothe existing codebase. 

That'd be nice to have, certainly ...

> I have submitted the implementation
on [GitHub](https://github.com/postgres/postgres/commit/1a9a2790430f256d9d0cc371249e43769d93eb8e#diff-6b6034caa00ddf38f641cbd10d5a5d1bb7135f8b23c5a879e9703bd11bd8240f).
Iwould appreciate it if you could review the implementation and provide feedback. 

... but I think this patch has no hope of being adequately portable.
It seems extremely specific to one particular C++ implementation
(unless you can show that every single thing you've used here is
in the C++ standard), and then for good measure you've thrown in
a new dependency on pthreads.  On top of that, doesn't this
require us to move our minimum language requirement to C++-something?
We just barely got done deciding C99 was okay to use.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: MERGE lacks ruleutils.c decompiling support!?
Next
From: Alvaro Herrera
Date:
Subject: Re: MERGE lacks ruleutils.c decompiling support!?