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

From: Karina Litskevich <litskevichkarina(at)gmail(dot)com>
To: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, kyzevan23(at)mail(dot)ru
Subject: Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables
Date: 2023-05-15 12:05:45
Message-ID: CACiT8ib7MbLzHLPifRm_DeXEzZMbXgUHoP_L0t0YZrx3Dxfyyw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

вт, 25 апр. 2023 г. в 06:33, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)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/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2023-05-15 12:33:13 BUG #17933: pgAgent - password doesn't work
Previous Message Karina Litskevich 2023-05-15 12:03:48 Re: BUG #17731: Server doesn't start after abnormal shutdown while creating unlogged tables