Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dshZa-0002Mr-K4 for pgsql-committers@arkaria.postgresql.org; Fri, 15 Sep 2017 03:45:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dshZZ-0007wz-Ut for pgsql-committers@arkaria.postgresql.org; Fri, 15 Sep 2017 03:45:45 +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 1dshZK-0007Ul-LL for pgsql-committers@postgresql.org; Fri, 15 Sep 2017 03:45:30 +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 1dshZE-0001bI-Mj for pgsql-committers@postgresql.org; Fri, 15 Sep 2017 03:45:30 +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 v8F3jKqF014933; Thu, 14 Sep 2017 23:45:20 -0400 From: Tom Lane To: Thomas Munro cc: Andres Freund , pgsql-committers Subject: Re: pgsql: Add support for coordinating record typmods among parallel worke In-reply-to: References: <13971.1505445491@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Fri, 15 Sep 2017 15:38:09 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14931.1505447120.1@sss.pgh.pa.us> Date: Thu, 14 Sep 2017 23:45:20 -0400 Message-ID: <14932.1505447120@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Thomas Munro writes: > My compiler, C++ and more recent C standards are OK with identical > redefinition of a typedef like that, but not the older standards or > those particular compilers. D'oh. (I should figure out how to make > my automatic patch tester this fussy). I think we should probably > just do this: Our usual locution for this sort of thing is to use "struct SharedRecordTypmodRegistry" in headers instead of the typedef name, if we don't want to pull in the header where the typedef is defined. It might be all right to do what you suggest, but we've been burnt in the past by circular dependencies and/or pulling some header into essentially the entire build (which tends to lead to a mess down the road). I'd generally lean in the direction of not adding #includes to header files except where absolutely necessary. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers