pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Foo Bar <qubitrenegade@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: WAL Archive Cleanup?
Date: Sat, 23 Mar 2019 10:14:03 +0900
Message-ID: <20190323011403.GF20584@paquier.xyz> (raw)
In-Reply-To: <CAMkU=1w0wYrpXpOTBcEH0rSFQcjBnai+p4OXuzHDvq8+rRHk5A@mail.gmail.com>
References: <CACLHErRJmVj-9-MYoKrwcUaGmV4t6CG6Z4TvR+jpQ+y-282GFQ@mail.gmail.com>
	<CAMkU=1w0wYrpXpOTBcEH0rSFQcjBnai+p4OXuzHDvq8+rRHk5A@mail.gmail.com>

On Fri, Mar 22, 2019 at 12:26:33PM -0400, Jeff Janes wrote:
> archive_cleanup_command is pretty much obsolete.  The modern way to do this
> is with streaming replication, using either replication slots or
> wal_keep_segments.  If the only reason you want an archive is for
> replication, then use streaming replication and do away with the archive
> completely.  There are reasons other than replication that one might want
> to keep a WAL archive, but those reasons don't seem to apply to you.  And
> if they did you almost certainly wouldn't want to run
> archive_cleanup_command on it.

Personally, I still find archives also very valuable when a standby
creation takes a long time because of a large initial base backup and
that the partition dedicated to pg_wal is not large enough to support
the retention associated with a slot, and it is easier to have larger
retention policies in the archives.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (9+ messages)  latest in thread

Message-ID: <20190323011403.GF20584@paquier.xyz>
Permalink:  ../20190323011403.GF20584@paquier.xyz/
Also on:    postgresql.org/message-id/20190323011403.GF20584@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, jeff.janes@gmail.com, qubitrenegade@gmail.com
  Subject: Re: WAL Archive Cleanup?
  In-Reply-To: <20190323011403.GF20584@paquier.xyz>
  References: <CACLHErRJmVj-9-MYoKrwcUaGmV4t6CG6Z4TvR+jpQ+y-282GFQ@mail.gmail.com> <CAMkU=1w0wYrpXpOTBcEH0rSFQcjBnai+p4OXuzHDvq8+rRHk5A@mail.gmail.com> <20190323011403.GF20584@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox