Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNOH8-0001ob-Bu for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 17:48:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNOH7-00080j-QP for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 17:48:45 +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 1bNOH7-0007ym-0G for pgsql-hackers@postgresql.org; Wed, 13 Jul 2016 17:48:45 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNOH4-0002uT-Fi; Wed, 13 Jul 2016 17:48:43 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id ABE5420717; Wed, 13 Jul 2016 13:48:41 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 13 Jul 2016 13:48:41 -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=He/dk59dgoM8EevY+Cbda6zBEKw=; b=KO5n5 Hty5vhIINvYNxqleGNZ+e4cT/i9kWF4WPH4yWHy4knn1DN6IBh4HYoQLSUBiv4Yk 2P3rYXoNkCegO9ETbH+JDcoUBCfoBwxULwDXHsX/mkBod/ugoHHumIP1mPNOncE7 1hlhtBFxAD7bgvhpNDAjtgsTnYUWwT/oOEPXe4= X-Sasl-enc: ziBGsr2WdjMR/It/N6YnrGKaRa5LMUWJgRLCEfDfAEgb 1468432121 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 92367F29F7; Wed, 13 Jul 2016 13:48:40 -0400 (EDT) Date: Wed, 13 Jul 2016 10:48:38 -0700 From: Andres Freund To: Kevin Grittner Cc: Amit Kapila , Noah Misch , Robert Haas , Alvaro Herrera , Ants Aasma , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160713174838.oh53exchsuyxxply@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-13 10:06:52 -0500, Kevin Grittner wrote: > On Wed, Jul 13, 2016 at 7:57 AM, Amit Kapila wrote: > > On Tue, Jul 12, 2016 at 8:34 PM, 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". > > > > Isn't it possible if we initialize lsn and whenTaken in SnapshotToast > > when old_snapshot_threshold > 0 and add a check for > > HeapTupleSatisfiesToast in TestForOldSnapshot()? > > With that approach, how will we know *not* to generate an error > when reading the chain of tuples for a value we are deleting. Or > positioning to modify an index on toast data. Etc., etc. etc. I'm not following. How is that different in the toast case than in the heap case? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers