Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fR2MR-0006Kw-7Y for pgsql-committers@arkaria.postgresql.org; Thu, 07 Jun 2018 21:22:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fR2MP-0007DV-N1 for pgsql-committers@arkaria.postgresql.org; Thu, 07 Jun 2018 21:22:21 +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.89) (envelope-from ) id 1fR2MP-0007DM-IC for pgsql-committers@lists.postgresql.org; Thu, 07 Jun 2018 21:22:21 +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.89) (envelope-from ) id 1fR2MM-0002aO-32 for pgsql-committers@lists.postgresql.org; Thu, 07 Jun 2018 21:22:21 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CC07621707; Thu, 7 Jun 2018 17:22:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 07 Jun 2018 17:22:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=xHQpIqq3I9v1c67bFJjgaC/UBP45b1W59mcMFyVHGKA=; b=GHihAAUb 3EIbGonuogX9mJp0zbnDK8bDDihZIZn69tI64Hh1xe5rhHFwAdyNDsJICMHjtxCV LvLVE12+8+3erXzEo37p40w8YwPbZO/lPNhGZEAR+sUC4jg6lf15qwwU0WnfI4Wu XjxlV6Qqa26Rm8V0SfrzE5NNMz5/WwOVwTNqY5/3vI6ozupFuIWYS9LyjtHFDddq 9TGr13ovAmtJZakKC/YHUyD/wQfLRy1Df71l3RoAp4EsAyfkbgyk56qDrmT1FBzX GIOOUkmWCbGNKhobVJWhR2zxkay/tUxVSJoB0umIejD//JJQI3zCVOjA9wTdcqxR o5sqX3cIQFFjnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=xHQpIqq3I9v1c67bFJjgaC/UBP45b 1W59mcMFyVHGKA=; b=T6Z3W/dCvlK5cNZA+7LLGb2b7eCE6sIbRxzDHPRGGjZX8 2P63CBtoLpl/sWM6PttZgB5HnZjxGmF+HfohFxUth8OYpjuzDBhoFNa1ATo3VTIR 7lljCSjm2RCu9Tdu80vaqEUgdafpNZ/PEdTk7XRPxZY1m5r+3whUekCVGZPDXq1v U/B8Zz4K2QfvufORdg2zh83ufbiQwKDwWha4+u81Bb7vTkEiK/n/eG0V0/bzzhNQ hJ7T5PyhUwnCCZHfLvLdrhKDRV6XdXG8RLCQ/7S4DXLIzH2FtnqAzrd16agmo+LZ otmFbz9IJ44MoJW8L5LUjuPsnY8qqMno1nczEHVDg== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 573701025C; Thu, 7 Jun 2018 17:22:16 -0400 (EDT) Date: Thu, 7 Jun 2018 14:22:15 -0700 From: Andres Freund To: Tom Lane Cc: Simon Riggs , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Exclude VACUUMs from RunningXactData Message-ID: <20180607212215.mjni4ki6j2hgg5i2@alap3.anarazel.de> References: <2850.1528403070@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2850.1528403070@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-06-07 16:24:30 -0400, Tom Lane wrote: > Simon Riggs writes: > > Exclude VACUUMs from RunningXactData > > GetRunningTransactionData() should ignore VACUUM procs because in some > > cases they are assigned xids. > > Uh, what? Lazy vacuum shouldn't acquire an xid. If it does, that > would suggest it's running code that it's unsafe for > GetRunningTransactionData to ignore. Well, we currently do acquire an xid at the end when truncating (see [1]). But that still doesn't seem to make it the right thing to ignore these xids. Let's continue the discussion over there? Greetings, Andres Freund [1] http://archives.postgresql.org/message-id/20180607211918.h2cdja26ypriw2sm%40alap3.anarazel.de