pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Anders Bøgh Bruun <anders@cellpointdigital.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Logical replication troubles
Date: Mon, 25 May 2020 11:09:27 +0200
Message-ID: <0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.com> (raw)
In-Reply-To: <CAMnwvPzqHz20ZpWcOJ4pRw2HY_CUrEKoUr6ePYj8+x+NdCfKww@mail.gmail.com>
References: <CAMnwvPwBgkmaMZapP_wgXZwxGZymuaYuqNykGLiMG4K+rGmBaQ@mail.gmail.com>
	<7ad3f1d0-b9ee-d914-ad57-16f07686ee9d@2ndquadrant.com>
	<CAMnwvPyW_8q_2dHePPdbg+=nDW11oBzxDdqW+269=TLC6Ox1NQ@mail.gmail.com>
	<e0885261-5723-7bab-f541-e6a260f50328@2ndquadrant.com>
	<CAMnwvPzqHz20ZpWcOJ4pRw2HY_CUrEKoUr6ePYj8+x+NdCfKww@mail.gmail.com>

On 2020-05-25 10:19, Anders Bøgh Bruun wrote:
> Thank you for that clarification. It helps me understand how things work 
> a lot better.
> I know this might be a bit off topic, but my challenge here is that we 
> are using Patroni (by using Zalando's postgres-operator for Kubernetes), 
> and any replication slot not created by Patroni, seems to be removed, 
> whenever the master pod restarts. We therefore specify in the Patroni 
> config, that a permanent replication slot should be created for our 
> usage to do logical replication of some select tables, to our data 
> warehouse. That means that the replication slot is created as soon as 
> the database is ready to use, which is also before any tables, data or 
> publications are created. Can you give me a hint as to what the correct 
> way to set this up would be?
> Or do I need to try contacting the Patroni devs instead?

That would probably be best.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (6+ messages)

Message-ID: <0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.com>
Permalink:  ../0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.com/
Also on:    postgresql.org/message-id/0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.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: peter.eisentraut@2ndquadrant.com, anders@cellpointdigital.com
  Subject: Re: Logical replication troubles
  In-Reply-To: <0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.com>
  References: <CAMnwvPwBgkmaMZapP_wgXZwxGZymuaYuqNykGLiMG4K+rGmBaQ@mail.gmail.com> <7ad3f1d0-b9ee-d914-ad57-16f07686ee9d@2ndquadrant.com> <CAMnwvPyW_8q_2dHePPdbg+=nDW11oBzxDdqW+269=TLC6Ox1NQ@mail.gmail.com> <e0885261-5723-7bab-f541-e6a260f50328@2ndquadrant.com> <CAMnwvPzqHz20ZpWcOJ4pRw2HY_CUrEKoUr6ePYj8+x+NdCfKww@mail.gmail.com> <0199a16a-49e8-47cd-5a08-79e848346d77@2ndquadrant.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