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: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Date: Thu, 14 Apr 2016 22:46:01 -0400
Message-ID: <12049.1460688361@sss.pgh.pa.us> (raw)
In-Reply-To: <20160415021702.rw6n725aqkfluf5w@alap3.anarazel.de>
References: <4369.1460435533@sss.pgh.pa.us>
	<20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de>
	<32012.1460472131@sss.pgh.pa.us>
	<3736.1460476321@sss.pgh.pa.us>
	<20160413180414.b3cbliwgzrfinxg3@alap3.anarazel.de>
	<16708.1460571375@sss.pgh.pa.us>
	<20160413182019.opzgxtnmjkeibmub@alap3.anarazel.de>
	<20160414000412.7b7yocwptunnbptt@alap3.anarazel.de>
	<16042.1460592586@sss.pgh.pa.us>
	<20160414063121.d6neaimawvffo3mh@alap3.anarazel.de>
	<20160415021702.rw6n725aqkfluf5w@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> On 2016-04-13 23:31:21 -0700, Andres Freund wrote:
>> I'm also putting up an animal with clang that uses
>> CFLAGS='-std=c89 -Wc99-extensions -Werror=c99-extensions'
>> which actually catches this.

> Hm. Doing so I found the following in 9.3:

> /home/andres/src/postgresql-9.3/src/bin/pg_dump/parallel.c:561:23: error: initializer for aggregate is not a compile-time constant [-Werror,-Wc99-extensions]
>                         int                     pipefd[2] = {pipeMW[PIPE_READ], pipeWM[PIPE_WRITE]};
>                                                              ^~~~~~~~~~~~~~~~~

> which is, afaics, the same class of issue we're hitting on master right
> now. I apparently fixed that, via Robert, back in 59202fae0. I'd planned
> to put up that animal (mylodon) for all branches, but given that that's
> been unfixed for years I'm not sure. What do you think?

Huh.  I just tried pademelon's compiler on the 9.3 branch, and sure
enough it spits up on that:

cc: "parallel.c", line 561: error 1521: Incorrect initialization.
cc: "parallel.c", line 561: error 1521: Incorrect initialization.
make: *** [parallel.o] Error 1

I am not sure how come I missed seeing that at the time, but I certainly
would have complained about it if I had chanced to try that compiler
later in 9.3 development.  I stopped using that machine actively in
mid-2013, though, so maybe I just failed to try that compiler for a
period of a few months.  IIRC, when I got around to setting up pademelon
as a buildfarm animal, I didn't have it building anything older than 9.4,
so I missed seeing it on that end too.

I'd vote for back-patching 59202fae0 and enforcing c89 compatibility
all along the line.

			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



view thread (30+ messages)  latest in thread

Message-ID: <12049.1460688361@sss.pgh.pa.us>
Permalink:  ../12049.1460688361@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12049.1460688361@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, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
  In-Reply-To: <12049.1460688361@sss.pgh.pa.us>
  References: <4369.1460435533@sss.pgh.pa.us> <20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de> <32012.1460472131@sss.pgh.pa.us> <3736.1460476321@sss.pgh.pa.us> <20160413180414.b3cbliwgzrfinxg3@alap3.anarazel.de> <16708.1460571375@sss.pgh.pa.us> <20160413182019.opzgxtnmjkeibmub@alap3.anarazel.de> <20160414000412.7b7yocwptunnbptt@alap3.anarazel.de> <16042.1460592586@sss.pgh.pa.us> <20160414063121.d6neaimawvffo3mh@alap3.anarazel.de> <20160415021702.rw6n725aqkfluf5w@alap3.anarazel.de> <12049.1460688361@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