Re: pg_wal folder high disk usage

From: Muhammad Usman Khan <usman(dot)k(at)bitnine(dot)net>
To: Paul Brindusa <paulbrindusa88(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_wal folder high disk usage
Date: 2024-11-01 06:40:36
Message-ID: CAPnRvGuJ5oxEJ1xmJ2ULU63VNCKMcpbvkU-vO9wEdehA2KyZRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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
> paulbrindusa88(at)gmail(dot)com
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message thiemo 2024-11-01 08:41:06 Re: Plans for partitioning of inheriting tables
Previous Message Ian Lawrence Barwick 2024-11-01 06:07:20 Re: What to do with a PAAS-pg server