Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNOFt-0001mV-Gn for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 17:47:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNOFt-0006cq-3z for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 17:47:29 +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 1bNOFs-0006c5-3X for pgsql-hackers@postgresql.org; Wed, 13 Jul 2016 17:47:28 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNOFl-00054y-1R; Wed, 13 Jul 2016 17:47:27 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id CFE72203A2; Wed, 13 Jul 2016 13:47:18 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 13 Jul 2016 13:47:18 -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=GwCV7avBK2L+k6pdj/Rmp03wSX0=; b=TKHsm +3Cd/cgVihM51zeVDB5eEkpph9vD+bo4X33pcyLl6JNsg0VElMwhp0tOOQZPrwdD RSvfaJ9zSrFCMnBQ3HiW8Jqf/bhv0QYOd87BgLAqJKFCnjE7RkLPICeyL180ajpN 4gdTFEUtf1R8/e2dgnHs4Pl2bJ8qe4wb+DGzFg= X-Sasl-enc: 2SL41mHoZ5NPeLWQWju4nziMT14UOMLLBTjJdyFSXtiy 1468432038 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 7D9A7F29F7; Wed, 13 Jul 2016 13:47:18 -0400 (EDT) Date: Wed, 13 Jul 2016 10:47:17 -0700 From: Andres Freund To: Kevin Grittner Cc: Noah Misch , Robert Haas , Alvaro Herrera , Ants Aasma , Amit Kapila , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160713174717.n6ncoopyxnatp5d7@alap3.anarazel.de> References: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de> <20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de> <20160708185221.ez2hnj4yalxaoqnm@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-07-12 10:04:45 -0500, Kevin Grittner wrote: > On Fri, Jul 8, 2016 at 1:52 PM, Andres Freund wrote: > > > I'm a bit confused, why aren't we simply adding LSN interlock > > checks for toast? Doesn't look that hard? Seems like a much more > > natural course of fixing this issue? > > I took some time trying to see what you have in mind, and I'm > really not "getting it". I definitely applaud you for spotting the > problem, but this suggestion for solving it doesn't seem to be > useful. ... > Basically, after turning this suggestion every way I could, I see > two alternative ways to implement it. What I was actually getting at was to perform TestForOldSnapshot() in the HeapTupleSatisfiesToast case as well. That'd require minor amounts of work to keep the lsn up2date, but otherwise should be fairly easy to implement. It seems much more logical to use the same mechanism we use for heap for toast as well, rather than implementing something separate. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers