Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-committers <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
Date: 2016-04-04 07:08:32
Message-ID: CANP8+j+Bzpd4BJzfQZnxZZni3bokWTzvb_NMoVW2XAZe8G5HjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 4 April 2016 at 07:49, Andres Freund <andres(at)anarazel(dot)de> wrote:

> > It doesn't?
>

Nope, clearly in the code 2 lines above.

For that matter, it's also important for hot standby; to deal with
> FATALed transactions which didn't write an abort record. It's kinda
> important to call StandbyReleaseOldLocks for those. And if a standby is
> in STANDBY_SNAPSHOT_READY it's also important to see this kind of
> record.
>

Those objections apply to all solutions to the problem so far proposed,
likely any solution. My understanding was that those issues are considered
the lesser of the two evils. I'm happy to revert this patch, as long as we
agree that it also blocks all further "bug fixes" so far proposed based
upon those arguments.

> Additionally, we're now logging more WAL if archive timeout isn't
> configured, which doesn't strike me as a good idea.
>

That's not true either...

Thanks for your comments, but you seem to be misreading the patch with
respect to the if clause and new brackets.

I suggest we give this some hours of thought before discussing it further.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2016-04-04 07:22:20 Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
Previous Message Andres Freund 2016-04-04 06:49:20 Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-04-04 07:22:20 Re: pgsql: Avoid archiving XLOG_RUNNING_XACTS on idle server
Previous Message Craig Ringer 2016-04-04 07:06:43 Re: Timeline following for logical slots