pg_createsubscriber: Remove replication slot check on primary
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 17 Jun 2024 08:48:17 +0000 (10:48 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 17 Jun 2024 08:48:17 +0000 (10:48 +0200)
commitb96391382626306c301b67cbd2d28313d96741f3
tree2d93d85d2d1019d3c2ba37d1ddd057f86eca6340
parent04c8634c0c4d636540c9283efdd695558403dc4e
pg_createsubscriber: Remove replication slot check on primary

It used to check if the replication slot exists and is active on
primary.  This check might fail on slow hosts because the replication
slot might not be active at the time of this check.

The current code obtains the replication slot name from the
primary_slot_name on standby and assumes the replication slot exists
and is active on primary.  If it doesn't exist, this tool will log an
error and continue.

Author: Euler Taveira <euler.taveira@enterprisedb.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Discussion: https://www.postgresql.org/message-id/776c5cac-5ef5-4001-b1bc-5b698bc0c62a%40app.fastmail.com
src/bin/pg_basebackup/pg_createsubscriber.c