Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwDCA-0003Ma-To for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2017 19:35:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwDCA-0005o7-Fz for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2017 19:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwDC9-0005mb-5f for pgsql-hackers@postgresql.org; Thu, 06 Apr 2017 19:35:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwDC6-0005zr-Fc for pgsql-hackers@postgresql.org; Thu, 06 Apr 2017 19:35:47 +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 v36JZeYE004898; Thu, 6 Apr 2017 15:35:40 -0400 From: Tom Lane To: Joe Conway cc: Mike Palmiotto , Peter Eisentraut , Robert Haas , Stephen Frost , "pgsql-hackers@postgresql.org" Subject: Re: partitioned tables and contrib/sepgsql In-reply-to: <623bcaae-112e-ced0-8c22-a84f75ae0c53@joeconway.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> <22437.1491412750@sss.pgh.pa.us> <1711d370-b578-7f8d-f4b5-f8662e! 5808fb@joeconway.com> <11037.1491492598@sss.pgh.pa.us> <623bcaae-11! 2e-ced0-8c22-a84f75ae0c53@joeconway.com> Comments: In-reply-to Joe Conway message dated "Thu, 06 Apr 2017 11:19:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4896.1491507340.1@sss.pgh.pa.us> Date: Thu, 06 Apr 2017 15:35:40 -0400 Message-ID: <4897.1491507340@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 Joe Conway writes: > Any thoughts on whether 0001a and 0001b ought to be backpatched? I'm > thinking not given the lack of past complaints but it might make sense > to do. I think 0001a absolutely needs to be, because it is fixing what is really an ABI violation: sepgsql_needs_fmgr_hook is supposed to return our notion of bool, but as things stand it's returning _Bool (which is why the compiler is complaining). Now we might get away with that on most hardware, but on platforms where those are different widths, it's possible to imagine function-return conventions that would make it fail. 0001b seems to only be needed for compilers that aren't smart enough to see that tclass won't be referenced for RELKIND_INDEX, so it's just cosmetic. 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