Re: BDR to ignore table exists error

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема Re: BDR to ignore table exists error
Дата
Msg-id 7403b899-694b-3491-2a55-d09232308903@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: BDR to ignore table exists error  (Nikhil <nikhilsmenon@gmail.com>)
Ответы Re: BDR to ignore table exists error  (Nikhil <nikhilsmenon@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: BDR to ignore table exists error
Следующее
От: Hannes Erven
Дата:
Сообщение: Re: Migrate 2 DB's - v8.3