pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
Date: Mon, 4 Apr 2016 09:50:48 +0200
Message-ID: <20160404075048.GH2431@awork2.anarazel.de> (raw)
In-Reply-To: <CANP8+jKuy8W6xkMHF_V0YzWWMQdZ-LcUQiQ71kv9BgBjaq5T4Q@mail.gmail.com>
References: <E1amxqq-0001cw-2x@gemulon.postgresql.org>
	<20160404062450.GB2431@awork2.anarazel.de>
	<CANP8+jKoFKXvCZeNUG=TaCtg_YCZp-PDMffO86PG8h=wyF3R0g@mail.gmail.com>
	<20160404064202.GE2431@awork2.anarazel.de>
	<20160404064919.GG2431@awork2.anarazel.de>
	<CANP8+j+Bzpd4BJzfQZnxZZni3bokWTzvb_NMoVW2XAZe8G5HjA@mail.gmail.com>
	<20160404072220.GA2855@awork2.anarazel.de>
	<CANP8+jKuy8W6xkMHF_V0YzWWMQdZ-LcUQiQ71kv9BgBjaq5T4Q@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 2016-04-04 08:44:47 +0100, Simon Riggs wrote:
> On 4 April 2016 at 08:22, Andres Freund <andres@anarazel.de> 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



view thread (25+ messages)  latest in thread

Message-ID: <20160404075048.GH2431@awork2.anarazel.de>
Permalink:  ../20160404075048.GH2431@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20160404075048.GH2431@awork2.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, simon@2ndQuadrant.com
  Subject: Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
  In-Reply-To: <20160404075048.GH2431@awork2.anarazel.de>
  References: <E1amxqq-0001cw-2x@gemulon.postgresql.org> <20160404062450.GB2431@awork2.anarazel.de> <CANP8+jKoFKXvCZeNUG=TaCtg_YCZp-PDMffO86PG8h=wyF3R0g@mail.gmail.com> <20160404064202.GE2431@awork2.anarazel.de> <20160404064919.GG2431@awork2.anarazel.de> <CANP8+j+Bzpd4BJzfQZnxZZni3bokWTzvb_NMoVW2XAZe8G5HjA@mail.gmail.com> <20160404072220.GA2855@awork2.anarazel.de> <CANP8+jKuy8W6xkMHF_V0YzWWMQdZ-LcUQiQ71kv9BgBjaq5T4Q@mail.gmail.com> <20160404075048.GH2431@awork2.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox