Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvd1O-0005Zx-2d for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 04:58:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvd1N-0005t3-CM for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 04:58:17 +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 1cvd1M-0005se-QA for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 04:58:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvd1K-0004ps-3k for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 04:58:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v354w7dM019353; Wed, 5 Apr 2017 00:58:07 -0400 From: Tom Lane To: Robert Haas cc: Joe Conway , Mike Palmiotto , Stephen Frost , "pgsql-hackers@postgresql.org" Subject: Re: partitioned tables and contrib/sepgsql In-reply-to: References: <20170309144718.GE9812@tamriel.snowman.net> <81ddcddc-b9f6-9d80-19c4-c9270fc71fd5@joeconway.com> <426dde50-a6ef-d53c-0607-c0766afd6698@joeconway.com> <3b0f0a27-0ccf-7298-5365-87d685eeea42@joeconway.com> Comments: In-reply-to Robert Haas message dated "Tue, 04 Apr 2017 21:29:19 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19351.1491368287.1@sss.pgh.pa.us> Date: Wed, 05 Apr 2017 00:58:07 -0400 Message-ID: <19352.1491368287@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Robert Haas writes: > On Tue, Apr 4, 2017 at 6:56 PM, Joe Conway wrote: >> Any objections? > I'm guessing Tom's going to have a strong feeling about whether 0001a > is the right way to address the stdbool issue, I will? [ looks ... ] Yup, you're right. I doubt that works at all, TBH. What I'd expect to happen with a typical compiler is a complaint about redefinition of typedef bool, because c.h already declared it and here this fragment is doing so again. It'd make sense to me to do + #ifdef bool + #undef bool + #endif to get rid of the macro definition of bool that stdbool.h is supposed to provide. But there should be no reason to declare our typedef a second time. Another issue is whether you won't get compiler complaints about redefinition of the "true" and "false" macros. But those would likely only be warnings, not flat-out errors. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers