pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lucas <root@sud0.nz>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Wal files in /pgsql/14/main/pg_wal not removed
Date: Sun, 26 Dec 2021 11:14:49 -0500
Message-ID: <1336159.1640535289@sss.pgh.pa.us> (raw)
In-Reply-To: <433EA59F-22DF-4ADA-AB43-F53A263C43D2@sud0.nz>
References: <433EA59F-22DF-4ADA-AB43-F53A263C43D2@sud0.nz>

Lucas <root@sud0.nz> writes:
> My /pgsql/14/main/pg_wal directory is filling up. The server is not respecting the wal_keep_size = 100GB. I have no replication slots in this server, and I have already restarted PostgreSQL. 
> I don’t know what else to look for. Would appreciate any help.

> archive_mode = on
> archive_command = '/pgsql/pg-archive-wal-to-slaves.sh "%p"'

You have archive_mode on, so WAL files will not be removed until
your archive_command reports success.  Poke around in what that's
doing.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <1336159.1640535289@sss.pgh.pa.us>
Permalink:  ../1336159.1640535289@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1336159.1640535289@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, root@sud0.nz
  Subject: Re: Wal files in /pgsql/14/main/pg_wal not removed
  In-Reply-To: <1336159.1640535289@sss.pgh.pa.us>
  References: <433EA59F-22DF-4ADA-AB43-F53A263C43D2@sud0.nz> <1336159.1640535289@sss.pgh.pa.us>

* 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