Re: Use XLOG_CONTROL_FILE macro everywhere?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Use XLOG_CONTROL_FILE macro everywhere?
Дата
Msg-id 474746ef-fa9f-400e-902e-3bb018320ca0@eisentraut.org
обсуждение исходный текст
Ответ на Use XLOG_CONTROL_FILE macro everywhere?  ("Anton A. Melnikov" <a.melnikov@postgrespro.ru>)
Ответы Re: Use XLOG_CONTROL_FILE macro everywhere?  ("Anton A. Melnikov" <a.melnikov@postgrespro.ru>)
Список pgsql-hackers
On 19.04.24 05:50, Anton A. Melnikov wrote:
> 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
>
https://github.com/postgres/postgres/blob/84db9a0eb10dd1dbee6db509c0e427fa237177dc/src/bin/pg_resetwal/pg_resetwal.c#L588
> or here
>
https://github.com/postgres/postgres/blob/84db9a0eb10dd1dbee6db509c0e427fa237177dc/src/common/controldata_utils.c#L214
> 
> 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?

I don't know.  I don't find XLOG_CONTROL_FILE to be a very intuitive 
proxy for "pg_control".




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: WIP Incremental JSON Parser
Следующее
От: "Anton A. Melnikov"
Дата:
Сообщение: Re: Use XLOG_CONTROL_FILE macro everywhere?