Re: Add hint about replication slots when nearing wraparound

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Feike Steenbergen <feikesteenbergen(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add hint about replication slots when nearing wraparound
Date: 2017-12-29 14:17:41
Message-ID: CANP8+j+HDL7CEW1Dwsq+LcbELXGQXmyDeVJES2OQsSN4fgP73A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 27 December 2017 at 11:39, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> wrote:
> On Wed, Dec 27, 2017 at 08:47:20AM +0100, Feike Steenbergen wrote:
>> Changed the block from a note to a caution,
>
> Thanks for the new version.
>
> - "You might also need to commit or roll back old prepared transactions.")));
> + "You might also need to commit or roll back old prepared transactions, or drop stale replication slots.")));
> Would "or TO drop stale replication slots" be more correct English?
>
> ereport(WARNING,
> (errmsg("oldest xmin is far in the past"),
> - errhint("Close open transactions soon to avoid wraparound problems.")));
> + errhint("Close open transactions soon to avoid wraparound problems. You might also need to commit or roll back old prepared transactions, or drop stale replication slots.")));
>
> I am not convinced that you need this bit. autovacuum_freeze_max_age can
> be set to lower to even lower values than the default.
>
> Still, those are minor comments, so I am marking this patch as ready for
> committer to get more input from higher-ups.

I left that in for consistency.

Applied, thanks.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2017-12-29 14:18:53 Re: [PATCH] session_replication_role = replica with TRUNCATE
Previous Message Petr Jelinek 2017-12-29 14:14:07 Re: [PATCH] session_replication_role = replica with TRUNCATE