public inbox for [email protected]
help / color / mirror / Atom feedFrom: Achilleas Mantzios <[email protected]>
To: [email protected]
Subject: Fast Logical replication setup, via VM clone , PostgreSQL 16.9
Date: Mon, 30 Jun 2025 08:36:13 +0100
Message-ID: <[email protected]> (raw)
Hi,
I gotta provide again a logical repl subscriber for our devs, we are
running PostgreSQL 16.9 .
Instead of going the traditional logical replication way (which involves
long running COPY, catchup, etc), I am thinking of doing something along
the lines :
1) @publisher (master) create repl slot, create publication
2) shutdown postgresql ,
3) clone the VM,
4) boot the clone (subscriber),
5) @subscriber start postgresql , drop publication, drop replication
slot, create the subscription using repl slot of 1)
6) @master start postgresql .
or a version with less downtime for the publisher (aka master , primary) :
1) @publisher (master) create repl slot, create publication
2) shutdown postgresql ,
3) clone the VM,
4) start master,
5) boot the clone (subscriber),
6) @subscriber start postgresql , drop the publication, drop the
replication slot, create the subscription using repl slot of 1)
do you find any gotchas in the above ?
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Fast Logical replication setup, via VM clone , PostgreSQL 16.9
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox