Re: Use XLOG_CONTROL_FILE macro everywhere?

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: "Anton A. Melnikov" <a.melnikov@postgrespro.ru>
Cc: Daniel Gustafsson <daniel@yesql.se>, Peter Eisentraut <peter@eisentraut.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-04-25T00:04:26Z
Lists: pgsql-hackers
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.
--
Michael

Commits

  1. Use XLOG_CONTROL_FILE macro consistently for control file name.

  2. Doc: Update link to the mentioned subsection