Re: Proposal: Generic WAL logical messages

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: Proposal: Generic WAL logical messages
Дата
Msg-id 57054F68.10403@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Proposal: Generic WAL logical messages  (Andres Freund <andres@anarazel.de>)
Ответы Re: Proposal: Generic WAL logical messages  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 06/04/16 17:55, Andres Freund wrote:
> On 2016-04-06 16:49:17 +0100, Simon Riggs wrote:
>> Perhaps easy to solve, but how do we test it is solved?
>
> Maybe something like
>
> -- drain
> pg_logical_slot_get_changes(...);
> -- generate message in different database, to ensure it's not processed
> -- in this database
> \c template1
> SELECT pg_logical_emit_message(...);
> \c postgres
> -- check
> pg_logical_slot_get_changes(..);
>
> It's a bit ugly to hardcode database names :/
>

Attached patch adds filtering of both database and origin. Added tests
with slightly less hardcoding than what you proposed above.

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

Вложения

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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Choosing parallel_degree
Следующее
От: Robbie Harwood
Дата:
Сообщение: Re: [PATCH v12] GSSAPI encryption support