Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvoaf-0005zj-HY for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 17:19:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvoae-00035l-MC for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 17:19:28 +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 1cvoae-00035E-87 for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 17:19:28 +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 1cvoaW-0000Pc-MU for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 17:19:27 +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 v35HJAlD022438; Wed, 5 Apr 2017 13:19:10 -0400 From: Tom Lane To: Peter Eisentraut cc: Joe Conway , Robert Haas , Mike Palmiotto , Stephen Frost , "pgsql-hackers@postgresql.org" Subject: Re: partitioned tables and contrib/sepgsql In-reply-to: <1a7685fb-2aa8-8d01-4c50-c102335d3b12@2ndquadrant.com> 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> <19352.1491368287@sss.pgh.pa.us> <6d700f91-6bcb-9092-c897-501c7228975f@joeconway.com> <19727.1491408240@sss.pgh.pa.us> <1a7685fb-2aa8-8d01-4c50-c102335d3b12@2ndquadrant.! com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 05 Apr 2017 12:53:58 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22436.1491412750.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Apr 2017 13:19:10 -0400 Message-ID: <22437.1491412750@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 Peter Eisentraut writes: > On 4/5/17 12:04, Tom Lane wrote: >> Conclusion: Fedora's gcc is playing fast and loose somehow with the >> command "#include "; that does not include the file >> you'd think it does, it does something magic inside the compiler. >> The magic evidently includes not complaining about duplicate macro >> definitions for true and false. > Perhaps -Wsystem-headers would change the outcome in your case. Hah, you're right: with that, In file included from /usr/include/selinux/label.h:9:0, from label.c:40: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stdbool.h:34:0: warning: "tr= ue" redefined #define true 1 =20 In file included from ../../src/include/postgres.h:47:0, from label.c:11: ../../src/include/c.h:206:0: note: this is the location of the previous def= inition #define true ((bool) 1) and likewise for "false". So that mystery is explained. I stand by my previous patch suggestion, except that we can replace the parenthetical comment with something like "(We don't care if redefines "true"/"false"; those are close enough.)". regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers