pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Standardize replication origin naming to use "ReplOrigin".
Date: Wed, 28 Jan 2026 19:04:26 +0000
Message-ID: <E1vlAq1-003EFt-23@gemulon.postgresql.org> (raw)

Standardize replication origin naming to use "ReplOrigin".

The replication origin code was using inconsistent naming
conventions. Functions were typically prefixed with 'replorigin',
while typedefs and constants used "RepOrigin".

This commit unifies the naming convention by renaming RepOriginId to
ReplOriginId.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAD21AoBDgm3hDqUZ+nqu=ViHmkCnJBuJyaxG_yvv27BAi2zBmQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1fdbca159e0055fefc0b391ec09520d0b3bd9248

Modified Files
--------------
contrib/test_decoding/test_decoding.c              |  6 +--
doc/src/sgml/logicaldecoding.sgml                  |  2 +-
src/backend/access/rmgrdesc/xactdesc.c             |  8 +--
src/backend/access/transam/commit_ts.c             | 28 +++++------
src/backend/access/transam/twophase.c              | 12 ++---
src/backend/access/transam/xact.c                  | 14 +++---
src/backend/access/transam/xloginsert.c            |  4 +-
src/backend/access/transam/xlogreader.c            |  4 +-
src/backend/commands/subscriptioncmds.c            |  2 +-
src/backend/executor/execReplication.c             | 12 ++---
.../replication/logical/applyparallelworker.c      |  2 +-
src/backend/replication/logical/conflict.c         | 16 +++---
src/backend/replication/logical/decode.c           | 14 +++---
src/backend/replication/logical/logical.c          |  2 +-
src/backend/replication/logical/origin.c           | 58 +++++++++++-----------
src/backend/replication/logical/reorderbuffer.c    |  8 +--
src/backend/replication/logical/tablesync.c        |  4 +-
src/backend/replication/logical/worker.c           |  8 +--
src/backend/replication/pgoutput/pgoutput.c        | 16 +++---
src/backend/utils/adt/pg_upgrade_support.c         |  2 +-
src/bin/pg_basebackup/pg_createsubscriber.c        | 10 ++--
src/bin/pg_upgrade/t/004_subscription.pl           |  4 +-
src/include/access/commit_ts.h                     |  6 +--
src/include/access/twophase.h                      |  2 +-
src/include/access/xlogdefs.h                      |  2 +-
src/include/access/xlogreader.h                    |  2 +-
src/include/executor/executor.h                    |  4 +-
src/include/replication/conflict.h                 |  4 +-
src/include/replication/logical.h                  |  2 +-
src/include/replication/origin.h                   | 20 ++++----
src/include/replication/output_plugin.h            |  2 +-
src/include/replication/reorderbuffer.h            | 10 ++--
src/tools/pgindent/typedefs.list                   |  2 +-
33 files changed, 146 insertions(+), 146 deletions(-)



Message-ID: <E1vlAq1-003EFt-23@gemulon.postgresql.org>
Permalink:  ../E1vlAq1-003EFt-23@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vlAq1-003EFt-23@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Standardize replication origin naming to use "ReplOrigin".
  In-Reply-To: <E1vlAq1-003EFt-23@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