pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter <pmc@citylink.dinoex.sub.org>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Peter <pmc@citylink.dinoex.sub.org>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: 12.2: Why do my Redo Logs disappear??
Date: Tue, 9 Jun 2020 03:38:32 +0200
Message-ID: <20200609013832.GA44943@gate.oper.dinoex.org> (raw)
In-Reply-To: <CAH2-WzkW4deJz2WfwAw5LuK+s_nKHJkfA4WxXYS+OObnQ47jYA@mail.gmail.com>
References: <20200609000253.GA21670@gate.oper.dinoex.org>
	<CAH2-WzkW4deJz2WfwAw5LuK+s_nKHJkfA4WxXYS+OObnQ47jYA@mail.gmail.com>

On Mon, Jun 08, 2020 at 05:40:20PM -0700, Peter Geoghegan wrote:
! 
! I strongly suspect that you were hit by the bug fixed in commit
! 4e87c483. You should upgrade to Postgres 12.3 ASAP, to get that fix:
! 
! "Avoid premature recycling of WAL segments during crash recovery
! (Jehan-Guillaume de Rorthais)
! 
! WAL segments that become ready to be archived during crash recovery
! were potentially recycled without being archived."

Ahh, thank You so much; this is good news: if it is an already known
bug, I can close all efforts, remove the debug-switches again, stuff
the sources back into their box and relax. ;)

I did a check if I would find something about lost archiving logs, but
didn't - and then it is always possible that it's just a mistake
of mine - as I know I do make mistakes.

And now for the nitpicking part :)

On Mon, Jun 08, 2020 at 05:35:40PM -0700, Adrian Klaver wrote:

! > I am doing RedoLog Archiving according to Docs Chapter 25.1.
! 
! There is no ReDo logging, there is WAL logging.

Yes I know - and i don't care. Technically they're no longer WAL when
they're going to be archived. Their purpose then becomes to redo the
transactions, and even the messages say so:
! > LOG:  00000: redo done at 17/FF01C098

! What docs, because section 25.1 in the Postgres docs is :
! 
! https://www.postgresql.org/docs/12/backup-dump.html
! 
! 25.1. SQL Dump

Ups, mistake of mine. Should be 25.3.1.

! https://www.postgresql.org/docs/12/server-shutdown.html
! "
! Important
! 
! It is best not to use SIGKILL to shut down the server. Doing so will prevent
! the server from releasing shared memory and semaphores. Furthermore, SIGKILL
! kills the postgres process without letting it relay the signal to its
! subprocesses, so it might be necessary to kill the individual subprocesses
! by hand as well.

And which of these would be of any concern if the machine is rebooted
anyway?

I had to install new hardware, and currently I'm trying to identify
a memory exhaustion issue. This makes it necessary to reboot the full
system quite often, and I neither want to wait for orderly termination
of dozens of subsytems, nor do I want to need fsck at restart. This
would make SIGKILL/reboot the method of choice.

! What is RedoLog.bck?

The script which one has to write according to the docs' section which
would be correctly numbered 25.3.1.

cheerio,
PMc





view thread (5+ messages)  latest in thread

Message-ID: <20200609013832.GA44943@gate.oper.dinoex.org>
Permalink:  ../20200609013832.GA44943@gate.oper.dinoex.org/
Also on:    postgresql.org/message-id/20200609013832.GA44943@gate.oper.dinoex.org

 · 

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-general@postgresql.org
  Cc: pmc@citylink.dinoex.sub.org, pg@bowt.ie
  Subject: Re: 12.2: Why do my Redo Logs disappear??
  In-Reply-To: <20200609013832.GA44943@gate.oper.dinoex.org>
  References: <20200609000253.GA21670@gate.oper.dinoex.org> <CAH2-WzkW4deJz2WfwAw5LuK+s_nKHJkfA4WxXYS+OObnQ47jYA@mail.gmail.com> <20200609013832.GA44943@gate.oper.dinoex.org>

* 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