Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqtlo-0003C9-V6 for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 02:46:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqtlo-0003nv-DO for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 02:46:08 +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 1aqtln-0003no-Ot for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 02:46:07 +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 1aqtlk-0003AC-Sw for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 02:46:07 +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 u3F2k1F7012050; Thu, 14 Apr 2016 22:46:01 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. 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> Comments: In-reply-to Andres Freund message dated "Thu, 14 Apr 2016 19:17:02 -0700" Date: Thu, 14 Apr 2016 22:46:01 -0400 Message-ID: <12049.1460688361@sss.pgh.pa.us> X-Pg-Spam-Score: -2.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 Andres Freund 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