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:31:21 +0100
Message-ID: <A8B05077-547F-4899-9D9E-4051C02DA2BE@gmail.com> (raw)
In-Reply-To: <9076CFB7-5E9B-4458-AD4F-BC94AE3B6A0F@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>
	<92588443-EB0E-412B-B768-301603D21CCA@gmail.com>
	<9076CFB7-5E9B-4458-AD4F-BC94AE3B6A0F@elevated-dev.com>

Hi Scott, hi Yambu,

> On 07. Dec, 2020, at 15:11, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
> 
>> On Dec 7, 2020, at 7:02 AM, Paul Förster <paul.foerster@gmail.com> wrote:
>> 
>> 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.
> 
> I don't think OP is talking about the WAL files PG is managing; I think he's talking about WAL files copied into an archive directory.

if those files already archived to some destination are referred to, then yes, you can do with them whatever you want. They can be removed if they are not needed for a PITR.

For example, we remove them time-based. Files older than a certain number of days are removed (cron job, note: the job only removes files in the archive destination, NOT in ${PGDATA}/pg_wal).

Cheers,
Paul




view thread (10+ messages)  latest in thread

Message-ID: <A8B05077-547F-4899-9D9E-4051C02DA2BE@gmail.com>
Permalink:  ../A8B05077-547F-4899-9D9E-4051C02DA2BE@gmail.com/
Also on:    postgresql.org/message-id/A8B05077-547F-4899-9D9E-4051C02DA2BE@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: <A8B05077-547F-4899-9D9E-4051C02DA2BE@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