Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anjOK-0000To-6f for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2016 09:04:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anjOJ-0005r6-Oq for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2016 09:04:47 +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 1anjOJ-0005qy-5i for pgsql-hackers@postgresql.org; Wed, 06 Apr 2016 09:04:47 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1anjOF-0004Tb-2E for pgsql-hackers@postgresql.org; Wed, 06 Apr 2016 09:04:46 +0000 Received: by mail-lf0-x233.google.com with SMTP id j11so28843472lfb.1 for ; Wed, 06 Apr 2016 02:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=JH5puvUTCH9UqQiIyVBus3r0dCoc7cVt9VsYcoeCtOU=; b=PjgJZFMUQJxD6ELsKfTQQ5qtlZ/IzXmUgweunkKn7E5tzC40fXTMAXsDr6fcbq4/Ns 0SKIMEvu1HSZ+Ol1WC8qwQY3xiBzGuxx5hI4dG+Xr7VSMdK2kRe5UerbDRv4yzQe4ARe qGPrTrEC5mgLxibN4bDJwy/d8Cvkku2pYN5LtcaWt9Sy68Y0BmnJPPQn2BMVnWu/E+86 0/R4baV7z9kkY4G/skVplklnFZJJLoy/5fILU9hj+2M85zBOu2x8IacJ7Cyo568ma0Wa ZcZcxbzL/1YH39DrfWFkF8SvvsrktdUWZ1gEnuTgsnc/inZSfpM2oMt800CsGCPrr0K6 nVTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=JH5puvUTCH9UqQiIyVBus3r0dCoc7cVt9VsYcoeCtOU=; b=e9xosMzGggpg5YMZv0/Ufn/PYu/a5V5yzO4XsTBz0YfjM+dS39gqaqjYfIHoNZwkUI QfRwa+Rhu+hPzTBu0l7Avhsj5/05LCea1Metd1/cI5S/Qgrs8SNKKCNzzaXzgMwr1VbA GwzgtBciknQo2Lj7UtmwVSQIuYkGFcLkxlxOYSKt2rFt+4/7EcRos+WWdkV9+T/uecZr TDFHRPppi1SaH64i4GlrnMa8WWyeYGxRj8IdEKELS7GZQJf997nvXrx7HNwEoV8Hp1Lx wbjwPPfFc9k/J6qggZvEzeJ2/lmTaW1nvqzpFpT0zUab8yxg0dO4sA6S17+jfoumYAZ2 IEtA== X-Gm-Message-State: AD7BkJJkJurG6J+WAQdFzVq2b+x7sV0l8CobCjRZRC2iSoVGNXcMZtPE4tL8+l+iEG7+9LQwPz7QCZyhIurKCCAo MIME-Version: 1.0 X-Received: by 10.25.18.167 with SMTP id 39mr14267037lfs.159.1459933482327; Wed, 06 Apr 2016 02:04:42 -0700 (PDT) Received: by 10.25.81.68 with HTTP; Wed, 6 Apr 2016 02:04:42 -0700 (PDT) In-Reply-To: <20160406084534.v4g7iey2iqlyy57r@alap3.anarazel.de> References: <20160404062450.GB2431@awork2.anarazel.de> <20160404064202.GE2431@awork2.anarazel.de> <20160404064919.GG2431@awork2.anarazel.de> <20160404072220.GA2855@awork2.anarazel.de> <20160404075048.GH2431@awork2.anarazel.de> <20160406084534.v4g7iey2iqlyy57r@alap3.anarazel.de> Date: Wed, 6 Apr 2016 10:04:42 +0100 Message-ID: Subject: Re: [COMMITTERS] pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server From: Simon Riggs To: Andres Freund Cc: Simon Riggs , Michael Paquier , PostgreSQL-development , pgsql-committers Content-Type: multipart/alternative; boundary=001a113f235c9c3f7c052fcd40bc 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 --001a113f235c9c3f7c052fcd40bc Content-Type: text/plain; charset=UTF-8 On 6 April 2016 at 09:45, Andres Freund wrote: > On 2016-04-06 09:18:54 +0100, Simon Riggs wrote: > > Rather than take that option, I went to the trouble of writing a patch > that > > does the same thing but simpler, less invasive and more maintainable. > > Primarily, I did that for you, to avoid you having wasted your time and > to > > allow you to backpatch a solution. > > But it doesn't. It doesn't solve the longstanding problem of checkpoints > needlessly being repeated due to standby snapshots. I can't see why you say this. I am willing to listen, but this appears to be wrong. > It doesn't fix the > issue for for wal_level=logical. What issue is that? Previously you said it must not skip it at all for logical. > We now log more WAL with > XLogArchiveTimeout > 0 than without. > And the problem with that is what? > The other was an architectural fix, this is a selectively applied > bandaid. > It was an attempt at an architectural fix, which went wrong by being too much code and too invasive for such a minor issue. I'm not much concerned with what emotive language you choose to support your arguments, but I am concerned about clear, maintainable code and I object to the previous patch. There are other problems worthy of our attention and I will attend to those now. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --001a113f235c9c3f7c052fcd40bc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 6 April 2016 at 09:45, Andres Freund = <andres@anarazel= .de> wrote:
On 2016-04-06 09:18= :54 +0100, Simon Riggs wrote:
> Rather than take that option, I went to the trouble of writing a patch= that
> does the same thing but simpler, less invasive and more maintainable.<= br> > Primarily, I did that for you, to avoid you having wasted your time an= d to
> allow you to backpatch a solution.

But it doesn't. It doesn't solve the longstanding problem of= checkpoints
needlessly being repeated due to standby snapshots.

<sigh> I can't see why you say this. I am willing to lis= ten, but this appears to be wrong.
=C2=A0
It doesn't fix the
issue for for wal_level=3Dlogical.

What is= sue is that? Previously you said it must not skip it at all for logical.
=C2=A0
We now log more WAL with=
XLogArchiveTimeout > 0 than without.

And the problem with that is what?
=C2=A0
The other was an architectural fix, this is a selectively applied
bandaid.

It was an attempt at an archit= ectural fix, which went wrong by being too much code and too invasive for s= uch a minor issue.

I'm not much concerned with= what emotive language you choose to support your arguments, but I am conce= rned about clear, maintainable code and I object to the previous patch.

There are other problems worthy of our attention and = I will attend to those now.

--
Si= mon Riggs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0http://www.2ndQuadrant.com/
PostgreSQL Development, 24x= 7 Support, Remote DBA, Training & Services
--001a113f235c9c3f7c052fcd40bc--