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

From Greg Sabino Mullane
Subject Re: pg_wal folder high disk usage
Date
Msg-id CAKAnmmJwRQekE-4bGAmVEoP9KQdLtWz9+=CzBYGa_11KTbeQ2g@mail.gmail.com
Whole thread Raw
In response to Re: pg_wal folder high disk usage  (Muhammad Usman Khan <usman.k@bitnine.net>)
Responses Re: pg_wal folder high disk usage
List pgsql-general
On Fri, Nov 1, 2024 at 2:40 AM Muhammad Usman Khan <usman.k@bitnine.net> wrote:
For immediate space, move older files from pg_Wal to another storage but don't delete them.

No, do not do this! Figure out why WAL is not getting removed by Postgres and let it do its job once fixed. Please recall the original poster is trying to figure out what to do because they are not the database admin, so having them figure out which WAL are "older" and safe to move is not good advice.

Resizing the disk is a better option. Could also see if there are other large files on that volume that can be removed or moved elsewhere, esp. large log files.

Hopefully all of this is moot because their DBA is back from leave. :) 

Cheers,
Greg


pgsql-general by date:

Previous
From: thiemo@gelassene-pferde.biz
Date:
Subject: Re: Plans for partitioning of inheriting tables
Next
From: user
Date:
Subject: Re: Fwd: Postgres attach partition: AccessExclusive lock set on different tables depending on how attaching is performed