From: Andres Freund <andres@anarazel.de>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: [HACKERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
Date: Wed, 6 Apr 2016 15:19:29 +0200
Message-ID: <20160406131929.vqjprsdpj5njvzpz@alap3.anarazel.de> (raw)
In-Reply-To: <CANP8+jJK4mXXEEFmw2P4wPT6-5fTaJY4vnY2Ea=yEGrSophfjA@mail.gmail.com>
References: <CANP8+jKuy8W6xkMHF_V0YzWWMQdZ-LcUQiQ71kv9BgBjaq5T4Q@mail.gmail.com>
<20160404075048.GH2431@awork2.anarazel.de>
<CAB7nPqTh6-0xuB85f9oCtuqm88A_VEQnsVHbhbEPNa-Sdq8yog@mail.gmail.com>
<CANP8+jJ00vg2oBWcexNVUF-q3tSNbL1PAU7ZCAs4_hFMDWe=2w@mail.gmail.com>
<20160406084534.v4g7iey2iqlyy57r@alap3.anarazel.de>
<CANP8+jJWDcmrtFuJ2s-JqPJZ_sAzPsxi8uOwgH8_OAzV_NnnuQ@mail.gmail.com>
<20160406090905.lcspkmqjqamwgcup@alap3.anarazel.de>
<CANP8+jJXM4PVgMSBa0sy5uDni=Wa21_7hMj8J=n=UN07VqnuCQ@mail.gmail.com>
<20160406122739.wbjmom5rvhdeauvi@alap3.anarazel.de>
<CANP8+jJK4mXXEEFmw2P4wPT6-5fTaJY4vnY2Ea=yEGrSophfjA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2016-04-06 13:50:24 +0100, Simon Riggs wrote:
> On 6 April 2016 at 13:27, Andres Freund <andres@anarazel.de> wrote:
>
> > On 2016-04-06 13:11:40 +0100, Simon Riggs wrote:
> > > On 6 April 2016 at 10:09, Andres Freund <andres@anarazel.de> wrote:
> > > > On 2016-04-06 10:04:42 +0100, Simon Riggs wrote:
> > > > The issue there is that we continue to issue checkpoints if the only
> > > > activity since the last checkpoint was emitting a standby
> > > > snapshot. That's because:
> > > >
> > >
> > > I agree this is the current situation in 9.4 and 9.5, hence the bug
> > report.
> > >
> > > This no longer occurs with the patches I have proposed. The snapshot is
> > > skipped, so a further checkpoint never triggers.
> >
> > Not if there's a longrunning/idle transaction.
> >
> > Note that skipping the snapshot is actually a *problem* in some
> > cases. As I've brought up upthread, to which you never replied. A
> > xl_running_xacts->xcnt == 0/!overflowed snapshot can be very important
> > for hot standby, because it allows ProcArrayApplyRecoveryInfo() to
> > switch to INITIALIZED state:
> >
>
> I replied by posting a patch to address your concern, how is that non-reply?
It doesn't address the problem? It's irrelevant that the last snapshot
had 0 xacts, if you start recovery from a later check/restartpoint;
recovery won't process earlier running_xacts records.
> > This obviously doesn't apply to WAL_LEVEL_LOGICAL as is (the if). And it
> > also obviously repeats to log the same snapshot in a system where the
> > state hasn't changed, but where running->xcnt != 0 or nlocks != 0.
> My understanding from your previous comments was that it would be incorrect
> to do that.
I said:
> For one it breaks cleanup with logical decoding which does *NEED* to
> know that nothing is happening. Although only once, not repeatedly.
The salient point is "Although only once, not repeatedly.". Which is
pretty much same thing as for HS; to become consistent after a
checkpoint.
> Not true. I have listened to everything you've said and been patient with
> the high number of mistakes in your replies.
Simon, this is utterly ridiculous. Missing an if in a post-commit
review, of a hastily committed patch, which hasn't previously been
posted for review, is entirely normal.
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
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, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
In-Reply-To: <20160406131929.vqjprsdpj5njvzpz@alap3.anarazel.de>
References: <CANP8+jKuy8W6xkMHF_V0YzWWMQdZ-LcUQiQ71kv9BgBjaq5T4Q@mail.gmail.com> <20160404075048.GH2431@awork2.anarazel.de> <CAB7nPqTh6-0xuB85f9oCtuqm88A_VEQnsVHbhbEPNa-Sdq8yog@mail.gmail.com> <CANP8+jJ00vg2oBWcexNVUF-q3tSNbL1PAU7ZCAs4_hFMDWe=2w@mail.gmail.com> <20160406084534.v4g7iey2iqlyy57r@alap3.anarazel.de> <CANP8+jJWDcmrtFuJ2s-JqPJZ_sAzPsxi8uOwgH8_OAzV_NnnuQ@mail.gmail.com> <20160406090905.lcspkmqjqamwgcup@alap3.anarazel.de> <CANP8+jJXM4PVgMSBa0sy5uDni=Wa21_7hMj8J=n=UN07VqnuCQ@mail.gmail.com> <20160406122739.wbjmom5rvhdeauvi@alap3.anarazel.de> <CANP8+jJK4mXXEEFmw2P4wPT6-5fTaJY4vnY2Ea=yEGrSophfjA@mail.gmail.com> <20160406131929.vqjprsdpj5njvzpz@alap3.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