Re: BDR to ignore table exists error

From: Martín Marqués <martin(at)2ndquadrant(dot)com>
To: Nikhil <nikhilsmenon(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: BDR to ignore table exists error
Date: 2016-05-28 14:38:56
Message-ID: 7403b899-694b-3491-2a55-d09232308903@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Olarte 2016-05-28 15:26:27 Re: Migrate 2 DB's - v8.3
Previous Message Hannes Erven 2016-05-28 12:29:06 Re: Migrate 2 DB's - v8.3