<div dir="ltr">Thank you!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 1, 2023 at 1:52 AM Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
> Checking out increasing disk usage on my primary db server I noticed log<br>
> archives were building up in ~postgres/archivedir. It's been a while since<br>
> I set up my pgpool-II cluster so I had to do some digging to understand why<br>
> the logs are being archived there, and it turns out it's because they're<br>
> referenced in my follow_primary.sh (as copied from the sample script).<br>
> <br>
> Assuming I'm happy with my backup strategy in general, is there a reason I<br>
> need to keep these archived files? Do I need the archive_command at all?<br>
<br>
It is not necessary to enable archive mode.<br>
If you have your backup strategy or if you are using replication slot,<br>
you can disable archive mode to save disk space.<br>
<br>
If you enable archive mode, you need to remove old WAL files periodically after backup.<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS LLC<br>
<a href="https://www.sraoss.co.jp/" rel="noreferrer" target="_blank">https://www.sraoss.co.jp/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre cols="72"><b>Paul Cunnane</b> | CEO
Westnet Broadband Mayo Ltd t/a Westnet
Cedar House, Castlebar, Co. Mayo
Registered in Ireland no. 572580</pre></div></div></div></div></div></div>