Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqB9C-0001IU-UN for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 03:07:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqB9C-0008GW-HW for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 03:07:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqB7r-0006k7-FY for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 03:05:55 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqB7o-0007pJ-QQ for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 03:05:54 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C103A2147B for ; Tue, 12 Apr 2016 23:05:31 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 12 Apr 2016 23:05:31 -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=4kkrzhTloz2ime8T1muPbgLomU8=; b=sTTTV A2SxRvDPJg9S33EuT7ldP2X6PzUmWDWqGJD/su0b627+K94mpq3Z64thQ1RtUTIt D/JFbwASOqrPVFt6R5LCacuLwrSo0Ki5tkwBC8V/SbTnIUN74WJHE7Nc2xKOYukN rSx/tw1gS6tMczOSLtxAz8THLAarJcuM+uS4lA= X-Sasl-enc: a7nGztfoB6S4OF5r5D9AbvYysyvBp5d3qGJxzIqNPWoG 1460516731 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 552B1C00018; Tue, 12 Apr 2016 23:05:31 -0400 (EDT) Date: Tue, 12 Apr 2016 20:05:30 -0700 From: Andres Freund To: Alvaro Herrera , Noah Misch , Robert Haas Cc: Kevin Grittner , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160413030530.dfldqhmtojo222c4@alap3.anarazel.de> References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160413025214.GA954515@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160413025214.GA954515@alvherre.pgsql> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) X-Pg-Spam-Score: -1.8 (-) 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 23:52:14 -0300, Alvaro Herrera wrote: > Andres Freund wrote: > > > I'm kinda inclined to apply that portion (or just the whole patch with > > the spurious #ifdef 0 et al fixed) into 9.6; and add the necessary > > checks in a few places. Because I really think this is likely to hit > > unsuspecting users. > > !!! > > Be sure to consult with the RMT before doing anything of the sort. I didn't plan to do anything without a few +1's. I don't think we can release with the state of things as is though. I don't see a less intrusive way than to get rid of that spinlock on all platforms capable of significant concurrency. So, RMT, what are your thoughts on this? Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers