Re: Archive logging not cleaning up pg_wal directory

2025-04-10 Thread Justin Swanhart
Thank you very much. I had a stale replication slot. I removed it and the logs were cleaned up immediately. --Justin On Thu, Apr 10, 2025 at 8:48 AM Laurenz Albe wrote: > On Thu, 2025-04-10 at 08:28 -0400, Justin Swanhart wrote: > > I have the following in my postgresql.conf fo

Archive logging not cleaning up pg_wal directory

2025-04-10 Thread Justin Swanhart
Hi, I have the following in my postgresql.conf for archive logging: archive_command='test ! -f /var/lib/postgresql/prod_archive_logs/%f && cp %p /var/lib/postgresql/prod_archive_logs/%f' This command is properly copying the log files to my archive directory but they remain in the `pg_wal` directo