pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make logical decoding a part of the rmgr.
Date: Thu, 20 Jan 2022 00:51:17 +0000
Message-ID: <E1nALfZ-0007to-TM@gemulon.postgresql.org> (raw)

Make logical decoding a part of the rmgr.

Add a new rmgr method, rm_decode, and use that rather than a switch
statement.

In preparation for rmgr extensibility.

Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/ed1fb2e22d15d3563ae0eb610f7b61bb15999c0a.camel%40j-davis.com
Discussion: https://postgr.es/m/20220118095332.6xtlcjoyxobv6cbk@jrouhaud

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7a5f6b47488d824b1ea1326be4337e2c32325ff2

Modified Files
--------------
src/backend/access/transam/rmgr.c        |   5 +-
src/backend/replication/logical/decode.c | 105 +++++++------------------------
src/bin/pg_rewind/parsexlog.c            |   2 +-
src/bin/pg_waldump/rmgrdesc.c            |   2 +-
src/include/access/rmgr.h                |   2 +-
src/include/access/rmgrlist.h            |  44 ++++++-------
src/include/access/xlog_internal.h       |   5 ++
src/include/replication/decode.h         |  16 ++++-
8 files changed, 69 insertions(+), 112 deletions(-)



Message-ID: <E1nALfZ-0007to-TM@gemulon.postgresql.org>
Permalink:  ../E1nALfZ-0007to-TM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nALfZ-0007to-TM@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Make logical decoding a part of the rmgr.
  In-Reply-To: <E1nALfZ-0007to-TM@gemulon.postgresql.org>
  References: <E1nALfZ-0007to-TM@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox