Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVMBk-000755-NZ for pgsql-committers@arkaria.postgresql.org; Tue, 19 Jun 2018 19:21:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVMBi-0007NZ-Ty for pgsql-committers@arkaria.postgresql.org; Tue, 19 Jun 2018 19:21:10 +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.89) (envelope-from ) id 1fVMBi-0007NQ-Lj for pgsql-committers@lists.postgresql.org; Tue, 19 Jun 2018 19:21:10 +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.89) (envelope-from ) id 1fVMBg-0001e2-2d for pgsql-committers@lists.postgresql.org; Tue, 19 Jun 2018 19:21:09 +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 w5JJL4TA007843; Tue, 19 Jun 2018 15:21:04 -0400 From: Tom Lane To: Andres Freund cc: Bruce Momjian , Stephen Frost , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix for globals.c- c.h must come first In-reply-to: <20180619183004.t4gbsq6tmvq6ovzs@alap3.anarazel.de> References: <20180619175834.GE3637@momjian.us> <1904.1529431755@sss.pgh.pa.us> <20180619181526.sherq6nnxdtvjvhl@alap3.anarazel.de> <2503.1529432396@sss.pgh.pa.us> <20180619183004.t4gbsq6tmvq6ovzs@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 19 Jun 2018 11:30:04 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7841.1529436064.1@sss.pgh.pa.us> Date: Tue, 19 Jun 2018 15:21:04 -0400 Message-ID: <7842.1529436064@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Are there arguments for doing this in postgres.h rather than c.h? No, c.h is the correct place. The core problem is that we have to include pg_config.h before et al in order to have consistent libc APIs (on platforms where this matters), and c.h is what does that. > I think we shouldn't do this for v11, as it seems likely that some > extensions would be broken. While not hard to fix, that seems > unnecessary after beta1? Seems unlikely we'll introduce further cases > before new features are merged. Yeah, waiting for v12 seems fine. regards, tom lane