pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL logical replication depends on WAL segments?
Date: Tue, 22 Jan 2019 22:06:41 +0200
Message-ID: <323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAMa1XUhstcBJ_b0po3nn3vdY15Yrxu_3TW-oe9CmtxoUkxSR_A@mail.gmail.com>
References: <CAGvVEFvq_VM9LhYPeu+Uw__gEVvrBffGL=FO-88cZEp-35+arA@mail.gmail.com>
	<507c69ad-e87b-2180-c2ec-08e1aee20352@aklaver.com>
	<CAGvVEFsOCCi7xHWtXsDQ4mb9VVYB3TrKgpq+6i8JHkNPBw_TXA@mail.gmail.com>
	<CAMa1XUhr1v4QDqVgRRKNYB_vhrnNr2Y7wb0nu2RUxSS4Kx9s8A@mail.gmail.com>
	<20190122185244.7eakjblhzgvpcuyh@alap3.anarazel.de>
	<CAMa1XUhstcBJ_b0po3nn3vdY15Yrxu_3TW-oe9CmtxoUkxSR_A@mail.gmail.com>

On 22/1/19 8:59 μ.μ., Jeremy Finzel wrote:

> On Tue, Jan 22, 2019 at 12:52 PM Andres Freund <andres@anarazel.de 
> <mailto:andres@anarazel.de>> wrote:
>
>     Hi,
>
>     On 2019-01-22 11:10:27 -0600, Jeremy Finzel wrote:
>     > P.S. do heed the advice of the others and get more familiar with
>     the docs
>     > around WAL archiving.
>
>     Logical replication doesn't normally interact with WAL archiving
>     in any
>     way, so that seems orthogonal.
>
>
> But he is manually removing WAL files via cron which should normally 
> be held until the replication slot doesn't need it anymore.  I do 
> believe that is why he is getting errors.  The suggestion is to rely 
> on Postgres' WAL archiving rather than removing WAL files manually...

wal retention in pg_wal and wal archiving are different things. The OP 
got problems cause he deliberately went on to delete files in pg_wal 
which means he used the wrong method to address a wrong situation.

However, if the OP has still those WAL files archived he can use them to 
bring logical replication back in synch. Don't ask me how I know : 
https://www.postgresql.org/message-id/ae8812c3-d138-73b7-537a-a273e15ef6e1%40matrix.gatewaynet.com

>
> Thanks,
> Jeremy

view thread (21+ messages)  latest in thread

Message-ID: <323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.com>
Permalink:  ../323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.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 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: achill@matrix.gatewaynet.com
  Subject: Re: PostgreSQL logical replication depends on WAL segments?
  In-Reply-To: <323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.com>
  References: <CAGvVEFvq_VM9LhYPeu+Uw__gEVvrBffGL=FO-88cZEp-35+arA@mail.gmail.com> <507c69ad-e87b-2180-c2ec-08e1aee20352@aklaver.com> <CAGvVEFsOCCi7xHWtXsDQ4mb9VVYB3TrKgpq+6i8JHkNPBw_TXA@mail.gmail.com> <CAMa1XUhr1v4QDqVgRRKNYB_vhrnNr2Y7wb0nu2RUxSS4Kx9s8A@mail.gmail.com> <20190122185244.7eakjblhzgvpcuyh@alap3.anarazel.de> <CAMa1XUhstcBJ_b0po3nn3vdY15Yrxu_3TW-oe9CmtxoUkxSR_A@mail.gmail.com> <323036f2-079c-274d-9f10-5c4f8e89c689@matrix.gatewaynet.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