Re: pg_wal folder high disk usage - Mailing list pgsql-general

From Muhammad Usman Khan
Subject Re: pg_wal folder high disk usage
Date
Msg-id CAPnRvGuJ5oxEJ1xmJ2ULU63VNCKMcpbvkU-vO9wEdehA2KyZRw@mail.gmail.com
Whole thread Raw
In response to pg_wal folder high disk usage  (Paul Brindusa <paulbrindusa88@gmail.com>)
Responses Re: pg_wal folder high disk usage
List pgsql-general
First of all check if postgres cannot archive or delete old WAL files. For immediate space, move older files from pg_Wal to another storage but don't delete them.
Restart postgres in recovery mode and if archiving is not working then try disabling it temporarily to let PostgreSQL automatically clear older WAL files
archive_mode = off

On Thu, 31 Oct 2024 at 15:36, Paul Brindusa <paulbrindusa88@gmail.com> wrote:
Good morning,

On one of our postgres instances we have the pg_wal/data folder up to 196GB, out of 200GB disk filled up.
This has stopped the posgresql.service this morning causing two applications to crash.
Unfortunately our database admin is on leave today, and we are trying to figure out how to get the disk down?
Any ideas or suggestions are more than welcome.
 
Thank you in advance.

--
Kind Regards,
Paul Brindusa

pgsql-general by date:

Previous
From: Ian Lawrence Barwick
Date:
Subject: Re: What to do with a PAAS-pg server
Next
From: thiemo@gelassene-pferde.biz
Date:
Subject: Re: Plans for partitioning of inheriting tables