Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLZzq-0001ad-Jx for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jul 2016 17:55:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bLZzp-0005pJ-LQ for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jul 2016 17:55:25 +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 1bLZyT-0004Fa-5f for pgsql-hackers@postgresql.org; Fri, 08 Jul 2016 17:54:01 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bLZyL-0004mr-Uw; Fri, 08 Jul 2016 17:54:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D159B202D6; Fri, 8 Jul 2016 13:53:50 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 08 Jul 2016 13:53:50 -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=Hmfmn+lnUWeTNT2BoHcI9TFj+1I=; b=Iq/UB BDTzT4CBj0DdWhAKQ/K5EIJGDwBJe3LU6AF7RVEpbtzo7C43LwjH+YVy/TXGkwvl MrySF1DhKxr/h1LJc6Xbtdo/yYdZtuYSHb/+9E9IwIODwe0XMwDgpKG71paXQTMR l1vWKzUvq9grv2LNF7MiX1yPX2SkdN3w2wXc+I= X-Sasl-enc: D2bQ4jk4NNH8BaD4YwuSjyBnMhO/Gf1j1SN9gaP/qM2E 1468000430 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 668F7CCDA7; Fri, 8 Jul 2016 13:53:50 -0400 (EDT) Date: Fri, 8 Jul 2016 10:53:49 -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: <20160708175349.ue6okmukiny3r6cp@alap3.anarazel.de> References: <20160706215556.cmhtizpbdn6zp464@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-08 11:00:50 -0500, Kevin Grittner wrote: > On Wed, Jul 6, 2016 at 4:55 PM, Andres Freund wrote: > > > So I don't think that approach still allows old snapshot related > > cleanups for toast triggered vacuums? Is that an acceptable > > restriction? > > What I would rather see is that if the heap is vacuumed (whether or > not by autovacuum) then the related TOAST table is also vacuumed > (using the same horizon the heap used), but if the TOAST relation > is chosen for vacuum by itself that it does not attempt to adjust > the horizon based on old_snapshot_threshold. Uh, wouldn't that quote massively regress the autovacuum workload in some cases? There's a reason they're considered separately after all. And in many cases, even if there's lots of updates in the heap table, the toast table doesn't get any updates. And the toast table is often a lot larger than the data. Regards, Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers