Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPKUz-00084t-Vr for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2016 02:11:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bPKUz-0003W8-I5 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2016 02:11:05 +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 1bPKUw-0003TM-DL for pgsql-hackers@postgresql.org; Tue, 19 Jul 2016 02:11:02 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bPKUo-0002eU-FP for pgsql-hackers@postgresql.org; Tue, 19 Jul 2016 02:11:01 +0000 Received: by mail-pf0-x22a.google.com with SMTP id x72so1862574pfd.2 for ; Mon, 18 Jul 2016 19:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=R7d2yL3Z7RfCOiJrVm3L9Lto4u1/l8rf2+xhpgWqBQA=; b=F5+BgqSSLulQ99Z9rvRhID0fFyu9ca0DO8w9nhOyyxp974iyYJHzRiqHqAp1Zm5i6B pdUc8Sf4n/EL4kbI0yOQbtPZH0Yaw0qYE5DzAK1X7nyGeqNNCHgp0hXE1pEeD9bRQ8CM Mkv7ue8QwfyfZ3865MU4iUhPbWjpG5sRYXiu4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=R7d2yL3Z7RfCOiJrVm3L9Lto4u1/l8rf2+xhpgWqBQA=; b=Nlc0VfXygKkWSBB2LIfI8K2R5I8uNPpuLDFZEjkRtNJEoL9sf4JB7H9lFdftaDLxXM p1pShVd8haCdwxHkLhhlF4CnhqtEbGZOiNXa2FgR5JmxPeE+aqRzatIZjJPbdPS2zGcU VPOrv0UPe9+Wtt1AyQGoAzkn8TNA8XEipoWOaJLVu9uuYvGzf9j1hKqIXLMaz0Laqunx 7aI37H939uPYWQenq1YAOzeiJwFWK5KQip9G7VhLr4EDwcn8yCMQ57M1NrYmAiUxCh4a 6Dj2Is0cP/ohxYzkT2HSfN2is5iYZE2Mavptdruh7gSNWnNUyZAwE2wN0gi0UnrW5/bP tZSQ== X-Gm-Message-State: ALyK8tKXynuDp/DMGNRTvw0t+ocPfCbKUIjTYVX5ON/aogGknU48Lcuo7l2kBMfaNthcHg== X-Received: by 10.98.26.133 with SMTP id a127mr50354846pfa.46.1468894251111; Mon, 18 Jul 2016 19:10:51 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id e126sm294071pfc.5.2016.07.18.19.10.49 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Jul 2016 19:10:49 -0700 (PDT) Date: Mon, 18 Jul 2016 22:10:47 -0400 From: Noah Misch To: Kevin Grittner Cc: Andres Freund , Amit Kapila , Robert Haas , Alvaro Herrera , Ants Aasma , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160719021047.GB2027798@tornado.leadboat.com> References: <20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de> <20160708185221.ez2hnj4yalxaoqnm@alap3.anarazel.de> <20160713174838.oh53exchsuyxxply@alap3.anarazel.de> <20160716224808.GB1908970@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160716224808.GB1908970@tornado.leadboat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.7 (--) 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 Sat, Jul 16, 2016 at 06:48:08PM -0400, Noah Misch wrote: > On Wed, Jul 13, 2016 at 03:57:02PM -0500, Kevin Grittner wrote: > > On Wed, Jul 13, 2016 at 12:48 PM, Andres Freund wrote: > > > 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? > > > > A short answer is that a normal table's heap doesn't go through > > systable_getnext_ordered(). That function is used both for cases > > where the check should not be made, like toast_delete_datum(), and > > cases where it should, like toast_fetch_datum(). > > > > Since this keeps coming up, I'll produce a patch this way. I'm > > skeptical, but maybe it will look better than I think it will. I > > should be able to post that by Friday. > > This PostgreSQL 9.6 open item is past due for your status update. Kindly send > a status update within 24 hours, and include a date for your subsequent status > update. Refer to the policy on open item ownership: > http://www.postgresql.org/message-id/20160527025039.GA447393@tornado.leadboat.com IMMEDIATE ATTENTION REQUIRED. This PostgreSQL 9.6 open item is long past due for your status update. Please reacquaint yourself with the policy on open item ownership[1] and then reply immediately. If I do not hear from you by 2016-07-20 03:00 UTC, I will transfer this item to release management team ownership without further notice. [1] http://www.postgresql.org/message-id/20160527025039.GA447393@tornado.leadboat.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers