Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amzHk-0002Nv-Sz for pgsql-committers@arkaria.postgresql.org; Mon, 04 Apr 2016 07:50:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1amzHk-0002MM-AW for pgsql-committers@arkaria.postgresql.org; Mon, 04 Apr 2016 07:50:56 +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 1amzHj-0002ME-R7 for pgsql-committers@postgresql.org; Mon, 04 Apr 2016 07:50:55 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amzHh-0006Dx-3u for pgsql-committers@postgresql.org; Mon, 04 Apr 2016 07:50:54 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 19F223B4BE3; Mon, 4 Apr 2016 09:50:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Received: from andres.at.anarazel.de.authenticated.anarazel.de by mail.anarazel.de (Postfix) with ESMTPSA id C08173B4BE2 for ; Mon, 4 Apr 2016 09:50:48 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 455DF101CF8; Mon, 4 Apr 2016 09:50:48 +0200 (CEST) Date: Mon, 4 Apr 2016 09:50:48 +0200 From: Andres Freund To: Simon Riggs Cc: pgsql-committers Subject: Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server Message-ID: <20160404075048.GH2431@awork2.anarazel.de> References: <20160404062450.GB2431@awork2.anarazel.de> <20160404064202.GE2431@awork2.anarazel.de> <20160404064919.GG2431@awork2.anarazel.de> <20160404072220.GA2855@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -5.2 (-----) 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 2016-04-04 08:44:47 +0100, Simon Riggs wrote: > On 4 April 2016 at 08:22, Andres Freund wrote: > > No, because in the alternative proposal we determine that the system > > indeed has been idle since the last time a WAL record was logged. > Why would that change anything? If something aborts without writing an > abort record, the system can easily be idle afterwards. So an idle system > means nothing. Your objection applies to *all* cases, not just for this > patch and if we revert, we block all cases. The previous suggestion only considered a system idle if there's been a previous snapshot logged (addressing the issue at hand) and no further WAL record, but a select few excepted, have been generated since the last logged WAL record. Thus e.g. such an abort would only be ignored if it never persisted it xid anywhere (as that'd be WAL logging), in which case there cannot be an effect for HS. > > I haven't ignored any messages, regrettably I read them all. I've committed > a much simpler patch, which is what committers do. Unless it's completely obviously an improvement, most also send a revised version of the patch for review/comments. > That patch does exactly the same thing as the patch you prefer, just > does it differently; No, it doesn't; as explained above. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers