Re: Use XLOG_CONTROL_FILE macro everywhere? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Use XLOG_CONTROL_FILE macro everywhere?
Date
Msg-id CA+TgmoaivCgqRCD+XKAVid=+W+zz1-GNN1SQFz2Bubtfn7vEMw@mail.gmail.com
Whole thread Raw
In response to Re: Use XLOG_CONTROL_FILE macro everywhere?  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Use XLOG_CONTROL_FILE macro everywhere?
List pgsql-hackers
On Wed, Apr 24, 2024 at 8:04 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Wed, Apr 24, 2024 at 12:32:46PM +0300, Anton A. Melnikov wrote:
> > To ensure backward compatibility we can save the old macro like this:
> >
> > #define XLOG_CONTROL_FILE     "global/pg_control"
> > #define PG_CONTROL_FILE               XLOG_CONTROL_FILE
> >
> > With the best wishes,
>
> Not sure that I would bother with a second one.  But, well, why not if
> people want to rename it, as long as you keep compatibility.

I vote for just standardizing on XLOG_CONTROL_FILE. That name seems
sufficiently intuitive to me, and I'd rather have one identifier for
this than two. It's simpler that way.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: New committers: Melanie Plageman, Richard Guo
Next
From: Andrew Dunstan
Date:
Subject: Re: New committers: Melanie Plageman, Richard Guo