Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIpUR-0000Fx-K9 for pgsql-committers@arkaria.postgresql.org; Fri, 01 Jul 2016 03:51:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIpUQ-0006TZ-Jv for pgsql-committers@arkaria.postgresql.org; Fri, 01 Jul 2016 03:51:38 +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 1bIpUP-0006TG-SU for pgsql-committers@postgresql.org; Fri, 01 Jul 2016 03:51:38 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bIpUL-0004Dr-7Y for pgsql-committers@postgresql.org; Fri, 01 Jul 2016 03:51:36 +0000 Received: by mail-pa0-x242.google.com with SMTP id ts6so8729549pac.0 for ; Thu, 30 Jun 2016 20:51:32 -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=UTO1VpGLWUPNrKKotR4mskBhQ7NbqMwpxpC0+a7q3Cg=; b=BNuMvBOgQTST8BCqO8SGD/mZF+56/tQrRLIzV3ooaEzRkrW+4whF14sclAtkMlb71F euF3fSi2ya2nrhoKAehLLNAY9jvKoG3t28r+iD6m4cbzoBwTmd6FF3GGwpq+7wJkawM7 lXocPbfWHmPgIuny+L9LzAQt4KtKVHB2L4HhI= 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=UTO1VpGLWUPNrKKotR4mskBhQ7NbqMwpxpC0+a7q3Cg=; b=ADqZlv8auwaecChs9TLRXTWcKl4+UqdQHYDWyPo8MmkvR7lQfCk/No8GocYDeu9MOk bWkXc68UjFXOlB24P9E6aTx/SsNoHNer2AoLRrF5vESYcvklkAm139At8l73lT3Z1gHf QZNJgKImrl6wHiR3tfT10t3oZkUhIUMnKJz+PWGiTk267W0uh958JNTarphidJTEBPo0 OHI3wB8Uiwg+pjfopyuD6AVO5UICFEQ40EA3K9pEF7iW4+hcIAx+qFGtEOsvpXT3cdbN gJsE53WE5W7Xyhc5vlOYTtTOrCD4/F4ua4JFmPqunvXMH9eOKEt3SUEvs9NTThUhR2hB y5aw== X-Gm-Message-State: ALyK8tIR0LTs0altoz8b3jsE9r2e5nWLLt56LB0IUU5xvPA9SmjlnFy2NcLtU0LRFW23EA== X-Received: by 10.66.185.229 with SMTP id ff5mr27894817pac.132.1467345091560; Thu, 30 Jun 2016 20:51:31 -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 o6sm1348267pax.9.2016.06.30.20.51.29 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 30 Jun 2016 20:51:30 -0700 (PDT) Date: Thu, 30 Jun 2016 23:51:18 -0400 From: Noah Misch To: Kevin Grittner Cc: Andres Freund , Robert Haas , Alvaro Herrera , Ants Aasma , Amit Kapila , Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Subject: Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160701035118.GA1426591@tornado.leadboat.com> References: <20160616153745.upxilwj3spbi43dj@alap3.anarazel.de> <20160616161426.bapgkbh762ktzyhk@alap3.anarazel.de> <20160616165440.pla4q3gbozyciuyo@alap3.anarazel.de> <20160616180141.rnknufflldy7o5if@alap3.anarazel.de> <20160616183207.wygoktoplycdzav7@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Thu, Jun 16, 2016 at 01:56:44PM -0500, Kevin Grittner wrote: > On Thu, Jun 16, 2016 at 1:32 PM, Andres Freund wrote: > > > With old_snapshot_threshold=1 I indeed can reproduce the issue. I > > disabled autovacuum, to make the scheduling more predictable. But it > > should "work" just as well with autovacuum. > > > > S1: CREATE TABLE toasted(largecol text); > > INSERT INTO toasted SELECT string_agg(random()::text, '-') FROM generate_series(1, 10000000); > > BEGIN; > > DELETE FROM toasted; > > S2: BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ; > > S2: SELECT hashtext(largecol), length(largecol) FROM toasted; > >> ... > > S1: COMMIT; > > S2: SELECT hashtext(largecol), length(largecol) FROM toasted; > >> ... > > S1: /* wait for snapshot threshold to be passed */ > > S1: VACUUM pg_toast.pg_toast_16437; > >> INFO: 00000: "pg_toast_16437": found 61942 removable, 0 nonremovable row versions in 15486 out of 15486 pages > >> DETAIL: 0 dead row versions cannot be removed yet. > > S2: SELECT hashtext(largecol), length(largecol) FROM toasted; > > ERROR: XX000: missing chunk number 0 for toast value 16455 in pg_toast_16437 > > LOCATION: toast_fetch_datum, tuptoaster.c:1945 > > Thanks! That's something I should be able to work with. > Unfortunately, I am going to be on vacation, so I won't have any > results until sometime after 28 June. 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 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers