pgsql: Allow pgoutput to send logical decoding messages.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow pgoutput to send logical decoding messages.
Date: 2021-04-06 03:25:30
Message-ID: E1lTcLK-000200-B2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-04-06 04:31:06 pgsql: Fix some issues with SSL and Kerberos tests
Previous Message Amit Kapila 2021-04-06 03:08:54 pgsql: Refactor function parse_output_parameters.