pgsql: Allow pgoutput to send logical decoding messages. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Allow pgoutput to send logical decoding messages.
Date
Msg-id E1lTcLK-000200-B2@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Allow pgoutput to send logical decoding messages.
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Refactor function parse_output_parameters.
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix some issues with SSL and Kerberos tests