Re: [HACKERS] Logical decoding - filtering tables

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [HACKERS] Logical decoding - filtering tables
Дата
Msg-id CAMsr+YES+fidupfEqaq4Dxn6k0OoUGhs-GepyO6B9KRgvTCe_g@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Logical decoding - filtering tables  (valeriof <valerio_farruggio@hotmail.com>)
Ответы Re: [HACKERS] Logical decoding - filtering tables  (valeriof <valerio_farruggio@hotmail.com>)
Список pgsql-hackers
On 3 January 2017 at 17:11, valeriof <valerio_farruggio@hotmail.com> wrote:

> My question is if there is a way to call some sort of initializer where I
> pass all the filtering data information beforehand, so that I can keep
> calling the pg_logical_slot_get_binary_changes without having to
> re-initialize this list all the time. If this is not possible, what other
> options could I use?

There isn't any such functionality at the moment. Each logical
decoding plugin is supposed to supply its own.

Take a look at how pglogical does it in its replication set handling
and relation metadata cache.

I would quite like to generalise this approach, but am currently more
focused on things that cannot already be done without core changes.

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



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Potential data loss of 2PC files
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] WIP: [[Parallel] Shared] Hash