Re: RepOrigin vs. replorigin - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: RepOrigin vs. replorigin
Date
Msg-id CAA4eK1+9ugbGkN5SLz15KgMnf4BSU2Bu_1rKkd4h8ORH+BTCcQ@mail.gmail.com
Whole thread Raw
In response to RepOrigin vs. replorigin  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: RepOrigin vs. replorigin
List pgsql-hackers
On Tue, Jan 27, 2026 at 2:55 AM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>
> While reading the code in origin.c, I found the inconsistent use of
> RepOrigin and replorigin (with an 'l') quite confusing -- especially
> when trying to determine names for new functions or variables. For
> instance,
>
> - RepOriginId
> - InvalidRepOriginId
>
> - RM_REPLORIGIN_ID
> - XLOG_REPLORIGIN_{SET|DROP}
> - replorigin_session_origin
> - replorigin_session_xxx() functions
>
> Is there a conventional rule for choosing one over the other depending
> on context? Or should we consider unifying these naming conventions?"
>

AFAICS, most places use replorigin. So, +1 to unify the naming by
adding 'l' to places where it is not there unless someone sees a
theory/reason to keep them different.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Antonin Houska
Date:
Subject: Re: Adding REPACK [concurrently]
Next
From: Dilip Kumar
Date:
Subject: Re: unnecessary executor overheads around seqscans