pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: o.lepretre@gmail.com
To: pgsql-general@postgresql.org
Subject: oldest WAL files not removed
Date: Wed, 1 Sep 2021 12:48:51 +0200
Message-ID: <053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com> (raw)

Hi,

 

Looking at WAL folder after a crash, I noticed that new files after
restarting overwrite the more recent files before the crash and not the
oldest, which was what I expected. 

Is that normal ?  I got only one file marked .deleted. Does that happens
when a WAL file hase been completed updated in the database and if then
while all oldest files aren't marked .deleted after restarting ?

 

Example :

Crash occurs Aug 31 22:03 which is the more recent Wal file, the oldest file
is Aug 30 17:20 (and 105 files between those two)

After restarting Aug 30 17:20 is still there, Aug 31 22:03 disappeared, one
new file is Sep 1 12:15 marked .deleted (restarting date) and one new Sep 1
12:36 which I guess is normal. Right now, I see an new wal file and the
previous one marked .deleted which is ok. 

 

Why are the oldest wal files still there ?? Can I remove them ?

 

Hope I'm clear enough and thanks for explanations,

 

Olivier

 

view thread (5+ messages)  latest in thread

Message-ID: <053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com>
Permalink:  ../053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com/
Also on:    postgresql.org/message-id/053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com

 · 

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: o.lepretre@gmail.com
  Subject: Re: oldest WAL files not removed
  In-Reply-To: <053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com>
  References: <053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com>

* 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