pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Support <admin@e-blokos.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Reuse an existing slot with a new initdb
Date: Fri, 8 May 2020 13:51:48 -0700
Message-ID: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com> (raw)

I normalized my replislots with the name of my nodes.
I have 2 options in my recovery script that tries first pg_basebackup
to recover and sync the hot standby, but unfortunately big DB fails 
sometimes due
to very slow or unstable network. So my second option is to completely 
make a new inidb and import an sql file from pg_dumpall master as it 
takes less bytes once compressed. But I'm facing an issue with the slot 
complaining (obviously) about the ho standby node that does not match 
the slot identifier. So my question is simple, is there a way to 
reinitialize the slot to not renew the identifier with the new hot 
standby initdb?

Thanks

David





view thread (11+ messages)  latest in thread

Message-ID: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com>
Permalink:  ../5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com/
Also on:    postgresql.org/message-id/5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.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: admin@e-blokos.com
  Subject: Re: Reuse an existing slot with a new initdb
  In-Reply-To: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com>
  References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.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