pgsql: Allow pgoutput to send logical decoding messages.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Allow pgoutput to send logical decoding messages.
Дата
Msg-id E1lTcLK-000200-B2@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Allow pgoutput to send logical decoding messages.  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-committers
Allow pgoutput to send logical decoding messages.

The output plugin accepts a new parameter (messages) that controls if
logical decoding messages are written into the replication stream. It is
useful for those clients that use pgoutput as an output plugin and needs
to process messages that were written by pg_logical_emit_message().

Although logical streaming replication protocol supports logical
decoding messages now, logical replication does not use this feature yet.

Author: David Pirotte, Euler Taveira
Reviewed-by: Euler Taveira, Andres Freund, Ashutosh Bapat, Amit Kapila
Discussion: https://postgr.es/m/CADK3HHJ-+9SO7KuRLH=9Wa1rAo60Yreq1GFNkH_kd0=CdaWM+A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ac4645c0157fc5fcef0af8ff571512aa284a2cec

Modified Files
--------------
doc/src/sgml/protocol.sgml                  |  76 ++++++++++++++
src/backend/replication/logical/proto.c     |  28 ++++++
src/backend/replication/logical/worker.c    |   9 ++
src/backend/replication/pgoutput/pgoutput.c |  47 +++++++++
src/include/replication/logicalproto.h      |   3 +
src/include/replication/pgoutput.h          |   1 +
src/test/subscription/t/020_messages.pl     | 148 ++++++++++++++++++++++++++++
7 files changed, 312 insertions(+)


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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Refactor function parse_output_parameters.
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix some issues with SSL and Kerberos tests