Re: BDR to ignore table exists error - Mailing list pgsql-general

From Martín Marqués
Subject Re: BDR to ignore table exists error
Date
Msg-id 7403b899-694b-3491-2a55-d09232308903@2ndquadrant.com
Whole thread Raw
In response to Re: BDR to ignore table exists error  (Nikhil <nikhilsmenon@gmail.com>)
Responses Re: BDR to ignore table exists error  (Nikhil <nikhilsmenon@gmail.com>)
List pgsql-general
El 28/05/16 a las 08:57, Nikhil escribió:
> Once the node which was down is brought back the replication slot is not
> turned active. The reason being replication slot is trying to create a
> partition table which already exists. Because of this error replication
> slot is stuck in inactive mode. Is there any way to ignore this error?

BTW, how did you end up in such a state? Did you create the partition
table skipping ddl locking?

At this point the easiest way out is to drop the table on the node where
it's trying to get applied with bdr_replication off or
skip_ddl_replication on, so the table is dropped locally but not
replicated, and the create table from the slot can be consumed.

The other option is to consume the create table statement from the slot
directly.

Be aware of the dangers of changing the default values for such
parameters, (bdr_replication, skip_ddl_replication, skip_ddl_locking)
and when needed they should be used with special care.

Regards,

--
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Martín Marqués
Date:
Subject: Re: BDR to ignore table exists error
Next
From: Hannes Erven
Date:
Subject: Re: Migrate 2 DB's - v8.3