Re: Replication identifiers, take 4

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Replication identifiers, take 4
Дата
Msg-id 20150216002421.GJ15326@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Replication identifiers, take 4  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Replication identifiers, take 4  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On 2015-02-16 01:21:55 +0100, Andres Freund wrote:
> Here's my next attept attempt at producing something we can agree
> upon.
>
> The major change that might achieve that is that I've now provided a
> separate method to store the origin_id of a node. I've made it
> conditional on !REPLICATION_IDENTIFIER_REUSE_PADDING, to show both
> paths. That new method uses Heikki's xlog rework to dynamically add the
> origin to the record if a origin is set up. That works surprisingly
> simply.
>
> Other changes:
>
> * Locking preventing several backends to replay changes at the same
>   time. This is actually overly restrictive in some cases, but I think
>   good enough for now.
> * Logical decoding grew a filter_by_origin callback that allows to
>   ignore changes that were replayed on a remote system. Such filters are
>   executed before much is done with records, potentially saving a fair
>   bit of costs.
> * Rebased. That took a bit due the xlog and other changes.
> * A couple more SQL interface functions (like dropping a replication
>   identifier).

And here an actual patch.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Replication identifiers, take 4
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE} 2.0