Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables

Поиск
Список
Период
Сортировка
От Karina Litskevich
Тема Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables
Дата
Msg-id CACiT8ib7MbLzHLPifRm_DeXEzZMbXgUHoP_L0t0YZrx3Dxfyyw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-bugs
вт, 25 апр. 2023 г. в 06:33, Kyotaro Horiguchi <horikyota.ntt@gmail.com>:
> The init-fork related code has some other issues with crash-restart. A
> minor one is that the crash of the creating transaction for a unlogged
> relation leaves orphan init fork files.  I haven't fully chased the
> specific issue rased here, but I think the common cause in the cases
> is that the file operations around unlogged files are not fully
> transactional.  There is a proposed patchset [1], the first patch of
> which makes storage file creation and deletion transactional and
> crash-safe.  As far as I see it seems to fix this case, too.

I tried v28 of your patch and it fixes the problem. It seems to me that you are
right, there are other issues with file creation and deletion, and your patch
is a more proper way to fix them.

Best regards,
Karina Litskevich
Postgres Professional: http://postgrespro.com/



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

Предыдущее
От: Karina Litskevich
Дата:
Сообщение: Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17933: pgAgent - password doesn't work