| From: | Masahiko Sawada <msawada(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Standardize replication origin naming to use "ReplOrigin". |
| Date: | 2026-01-28 19:04:26 |
| Message-ID: | E1vlAq1-003EFt-23@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)evan(dot)chao(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2026-01-28 19:45:40 | pgsql: Refactor replication origin state reset helpers. |
| Previous Message | Andrey Borodin | 2026-01-28 18:09:35 | Re: pgsql: Prevent invalidation of newly synced replication slots. |