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 for archive loggi

Re: Archive logging not cleaning up pg_wal directory

2025-04-10 Thread Laurenz Albe
On Thu, 2025-04-10 at 08:28 -0400, Justin Swanhart wrote: > 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

Re: Archive logging not cleaning up pg_wal directory

2025-04-10 Thread Ron Johnson
On Thu, Apr 10, 2025 at 8:29 AM Justin Swanhart wrote: > 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