Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqaph-0003lO-5z for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Apr 2016 06:32:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqapg-0007R6-EJ for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Apr 2016 06:32:52 +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 1aqaoK-0005uD-89 for pgsql-hackers@postgresql.org; Thu, 14 Apr 2016 06:31:28 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqaoG-00066Z-9Z for pgsql-hackers@postgresql.org; Thu, 14 Apr 2016 06:31:27 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ADBA6211D9 for ; Thu, 14 Apr 2016 02:31:22 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 14 Apr 2016 02:31:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=XarWqb1Y8N/x7pd+tuOgwA/CVHE=; b=N4haY Tz161QDDtimkrb8ev7/VcrN1W3wLXfSVzGuveeF76H4A30sJhPiSQhGBgeAgbrvU 3H0Wi3d/3FE1Xw/j8/xmWwydev0JdNHZfD6qYjYw61aQLEY6LZqz3Jhj79K511qG pcFLU/yrT/dsxGpK1kXHEN0EU2u/QCcC0ILolo= X-Sasl-enc: Gt/JY4Ym1LfOc2bmXBSEsAPBG8ShRtyE9BCqH7TXv0NF 1460615482 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 4FDDC68016F; Thu, 14 Apr 2016 02:31:22 -0400 (EDT) Date: Wed, 13 Apr 2016 23:31:21 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Message-ID: <20160414063121.d6neaimawvffo3mh@alap3.anarazel.de> References: <1881.1460431476@sss.pgh.pa.us> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16042.1460592586@sss.pgh.pa.us> 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-13 20:09:46 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2016-04-13 11:20:19 -0700, Andres Freund wrote: > >> Heh, I was wondering the same aftering sending the last email. Will do > >> that then. > > > Pushed. Let's see what pademelon says... > > I lit off a run, but it'll be a few hours till we have results... In hindsight obviously, this isn't sufficient because s_lock reports the caller's file/line/function, not __FILE__ etc. So I guess we're left moving initialization to an inline function - will do so tomorrow. I'm also putting up an animal with clang that uses CFLAGS='-std=c89 -Wc99-extensions -Werror=c99-extensions' which actually catches this. I'd previously tested with gcc and "-Wc90-c99-compat -Werror=c90-c99-compat -Wno-long-long -Wno-error=long-long -std=c90", but that doesn't catch that error. (both find a couple trailing commas in enums, will fix) - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers