Use XLOG_CONTROL_FILE macro everywhere?

From: "Anton A(dot) Melnikov" <a(dot)melnikov(at)postgrespro(dot)ru>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Use XLOG_CONTROL_FILE macro everywhere?
Date: 2024-04-19 03:50:39
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


There is a macro XLOG_CONTROL_FILE for control file name
defined in access/xlog_internal.h
And there are some places in code where this macro is used
like here
or here

But there are some other places where the control file
name is used as text string directly.

May be better use this macro everywhere in C code?
The patch attached tries to do this.

Would be glad if take a look on it.

With the best regards,

Anton A. Melnikov
Postgres Professional:
The Russian Postgres Company

Attachment Content-Type Size
0001-Use-XLOG_CONTROL_FILE-macro-everywhere-in-C-code.patch text/x-patch 8.5 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-04-19 03:50:40 Re: Allow tests to pass in OpenSSL FIPS mode
Previous Message Colin Caine 2024-04-19 03:41:41 Okay to remove mention of mystery @ and ~ operators?