Re: Feature Request - DDL deployment with logical replication

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Feature Request - DDL deployment with logical replication
Дата
Msg-id 20180330143255.GE17824@fetter.org
обсуждение исходный текст
Ответ на Re: Feature Request - DDL deployment with logical replication  (Chris Travers <chris.travers@adjust.com>)
Список pgsql-hackers
On Fri, Mar 30, 2018 at 09:38:44AM +0200, Chris Travers wrote:
> On Fri, Mar 30, 2018 at 9:26 AM, Konstantin Knizhnik <
> k.knizhnik@postgrespro.ru> wrote:
> 
> > Our team in PostgresPro is also very interested in this discussion,
> > because we are using logical decoding in multimaster.
> > Right now in multimaster DDLs are replicated in this same way as in
> > pglogical, using "logical messages" with correspondent DDL statements.
> > There are a couple of problems related with this approach, for example mix
> > of DDL with DML (create table as...) which we have addressed in multimaster.
> >
> > As an alternative we have considered possibility to replicate updates of
> > catalog tables. In this case we need  to address the following issues:
> > 1. Map OIDs
> > 2. Perform direct manipulation with files (i.e. truncate, alter table,...)
> >
> 
> One very important note here is that since truncate is not replicated there
> are cases where people are relying on current behaviour.  For example, we
> are going to use logical replication specifically for this reason as a way
> of replacing our current FDW-based push approach.  If truncate is ever
> replicated, it would be really nice to be able to specify not to replicate
> it on the subscription level.

Do you have some kind of API in mind for describing subscriptions?

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Aleksander Alekseev
Дата:
Сообщение: Re: Cast jsonb to numeric, int, float, bool
Следующее
От: CharSyam
Дата:
Сообщение: [HACKERS][PATCH] adding simple sock check for windows