pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Yambu <hyambu@gmail.com>
Cc: Ian Lawrence Barwick <barwick@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Archive directory
Date: Mon, 7 Dec 2020 15:02:32 +0100
Message-ID: <92588443-EB0E-412B-B768-301603D21CCA@gmail.com> (raw)
In-Reply-To: <5AAB0FED-45AA-45F6-AFB5-A65A36275492@elevated-dev.com>
References: <CALhHtcBhOqhHmRjgiLfCKVS0mV3PSBS_61ZkKT9NvjNYMQw5wQ@mail.gmail.com>
	<CAB8KJ=gLEma2G3yGy6dO1PRtG1-nrRzTFcg8g17a8bPLXs5ODw@mail.gmail.com>
	<CALhHtcBRydsziEtQV+7rj81rHhL4N4jwTqGbBWDnLRMnB0tLBw@mail.gmail.com>
	<5AAB0FED-45AA-45F6-AFB5-A65A36275492@elevated-dev.com>

Hi Scott,

> On 07. Dec, 2020, at 14:53, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
> 
> The point of the archive command is to copy to the replica. If you're archiving on master, then using some script to copy to replica, then postgres has no way to know when it is safe to delete WAL files.

in my understanding, this is only true if you don't use replication slots. If you use replication slots then the primary should know when a WAL file is no longer needed and abandoned or ready to be recycled.

Cheers,
Paul




view thread (10+ messages)  latest in thread

Message-ID: <92588443-EB0E-412B-B768-301603D21CCA@gmail.com>
Permalink:  ../92588443-EB0E-412B-B768-301603D21CCA@gmail.com/
Also on:    postgresql.org/message-id/92588443-EB0E-412B-B768-301603D21CCA@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: paul.foerster@gmail.com, scott_ribe@elevated-dev.com, hyambu@gmail.com, barwick@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Archive directory
  In-Reply-To: <92588443-EB0E-412B-B768-301603D21CCA@gmail.com>

* 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