Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZpz5-0006ZT-8E for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 01:49:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bZpz4-0007HH-1Z for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 01:49:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bZpxb-0005fq-7c for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 01:48:03 +0000 Received: from sub4.mail.dreamhost.com ([69.163.253.135] helo=homiemail-a66.g.dreamhost.com) by magus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bZpxT-0003dE-55 for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 01:48:02 +0000 Received: from homiemail-a66.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTP id 917EEB004286; Tue, 16 Aug 2016 18:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=andl.org; h=from:to:cc :references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=andl.org; bh=AdKnUH8H U+IrXJhHnDV8WJyuft4=; b=I3e1ESXh+PdxdkkvKtD+ayrYDvZ93SLIKWLdnnZn DfCVJY5Wi8obn2Lgl5qtFv01ruWVujHdgIQZaM6k+z8E+X3mGZZOrPAZBjGQU6Ah bUe+YbD6f3uCaSwr5pSbN9ZBuV95OKbY96TMARVkVT8JV616gYi2z8bH7LO6MmqH RAI= Received: from Mona (pow1045804.lnk.telstra.net [120.150.90.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: david@andl.org) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTPSA id 908C4B004282; Tue, 16 Aug 2016 18:47:50 -0700 (PDT) From: "dandl" To: "'Andres Freund'" Cc: "'Tom Lane'" , "'Pg Hackers'" References: <007001d1f786$d903fa90$8b0befb0$@andl.org> <00a52208-3199-5858-8846-2530b0bb34df@archidevsys.co.nz> <27271.1471366764@sss.pgh.pa.us> <002401d1f820$a616f7a0$f244e6e0$@andl.org> <20160817005422.qjw7xvnbsbihqykv@alap3.anarazel.de> In-Reply-To: <20160817005422.qjw7xvnbsbihqykv@alap3.anarazel.de> Subject: Re: [GENERAL] C++ port of Postgres Date: Wed, 17 Aug 2016 11:51:04 +1000 Message-ID: <003701d1f829$d2308dc0$7691a940$@andl.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQK5YgyTtHInWrN+IWITFHXkqB0Y/wJ9yM0GAR5crPsB/nOAygJEdDtuAkLP0VYCaDRfgQIxJWdOAdj/lsACfRcoZAHsaZKondWfTsA= Content-Language: en-au X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > > From my particular perspective it would be enough if all the > internal > > headers (that one needs to use in writing server-side extensions) > were > > completely usable in C++. > > That should already be the case. There's even a dirty hack^WWscript > that checks that that remains the case > (src/tools/pginclude/cpluspluscheck). The source code for my project is here: https://github.com/davidandl/Andl/tree/master/plandl https://github.com/davidandl/Andl/blob/master/plandl/plandl.c I was not able to get this file to compile correctly in C++, and my recollection is that at the time I asked on this list and that was the advice. Sorry, I don't remember the error but it seemed to be too deeply embedded to worry about. I just wrote the C code and moved on. Since the Windows COM in the other part is C++ only, I finished up with a mixed build. It works fine, but is not the ideal outcome. Regards David M Bennett FACS Andl - A New Database Language - andl.org -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers