Re: Failure with 004_logrotate in prairiedog

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Failure with 004_logrotate in prairiedog
Дата
Msg-id YPUvSmMkz10ZHr1N@paquier.xyz
обсуждение исходный текст
Ответ на Re: Failure with 004_logrotate in prairiedog  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Ответы Re: Failure with 004_logrotate in prairiedog
Список pgsql-hackers
On Mon, Jul 19, 2021 at 04:15:36PM +0900, Kyotaro Horiguchi wrote:
> When rotation happens, the metainfo file is once removed then
> created. If slurp_file in the metafile-checking loop hits the gap, the
> slurp_file fails with ENOENT.

I can read the following code, as of update_metainfo_datafile():
if (rename(LOG_METAINFO_DATAFILE_TMP, LOG_METAINFO_DATAFILE) != 0)
    ereport(LOG,
            (errcode_for_file_access(),
             errmsg("could not rename file \"%s\" to \"%s\": %m",
                    LOG_METAINFO_DATAFILE_TMP, LOG_METAINFO_DATAFILE)));

This creates a temporary file that gets renamed to current_logfiles.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: badly calculated width of emoji in psql
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Toast compression method options