Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq3mO-0001W1-EU for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 19:15:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aq3mN-0003le-Hn for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 19:15:15 +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 1aq3l2-0002Ds-Vq for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 19:13:53 +0000 Received: from blu004-omc4s37.hotmail.com ([65.55.111.176]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq3ky-0001Er-HB for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 19:13:52 +0000 Received: from BLU437-SMTP18 ([65.55.111.137]) by BLU004-OMC4S37.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 12 Apr 2016 12:13:46 -0700 X-TMN: [MjENfoeopgWvZrKgQUaEiGIHUljLx7Qc] X-Originating-Email: [postgres@piotr-stefaniak.me] Message-ID: Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. To: Andres Freund , Tom Lane References: <1881.1460431476@sss.pgh.pa.us> <4369.1460435533@sss.pgh.pa.us> <20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de> CC: pgsql-hackers@postgresql.org From: Piotr Stefaniak Date: Tue, 12 Apr 2016 21:13:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160412050038.ua2avkwi6dxxcjhx@alap3.anarazel.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Apr 2016 19:13:45.0436 (UTC) FILETIME=[6F3601C0:01D194EF] X-Pg-Spam-Score: -2.6 (--) 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 On 2016-04-12 07:00, Andres Freund wrote: > On 2016-04-12 00:32:13 -0400, Tom Lane wrote: >> I wrote: >>> This commit has broken buildfarm member gaur, and no doubt pademelon >>> will be equally unhappy once it catches up to HEAD. >> >> Spoke too soon, actually: pademelon did not get as far as initdb. >> >> cc: "bufmgr.c", line 4032: error 1521: Incorrect initialization. >> cc: "bufmgr.c", line 4058: error 1521: Incorrect initialization. >> >> Apparently, assigning the result of init_spin_delay() is not as portable >> as you thought. > > Hm. I'm not sure why not though? Is it because delayStatus isn't static > or global scope? It's because C89 requires initializers for aggregate and union types to be constant expressions (3.5.7p3): > All the expressions in an initializer for an object that has static > storage duration or in an initializer list for an object that has > aggregate or union type shall be constant expressions. C99 removes this constraint (6.7.8p4): > All the expressions in an initializer for an object that has static storage duration shall be > constant expressions or string literals. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers