pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix for globals.c- c.h must come first
Date: Tue, 19 Jun 2018 15:21:04 -0400
Message-ID: <7842.1529436064@sss.pgh.pa.us> (raw)
In-Reply-To: <20180619183004.t4gbsq6tmvq6ovzs@alap3.anarazel.de>
References: <E1fJqYB-0006yo-La@gemulon.postgresql.org>
	<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>

Andres Freund <andres@anarazel.de> 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 <stdio.h> 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




view thread (9+ messages)  latest in thread

Message-ID: <7842.1529436064@sss.pgh.pa.us>
Permalink:  ../7842.1529436064@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7842.1529436064@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, bruce@momjian.us, sfrost@snowman.net
  Subject: Re: pgsql: Fix for globals.c- c.h must come first
  In-Reply-To: <7842.1529436064@sss.pgh.pa.us>
  References: <E1fJqYB-0006yo-La@gemulon.postgresql.org> <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> <7842.1529436064@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox