Re: Purpose of wal_init_zero - Mailing list pgsql-hackers

From Andy Fan
Subject Re: Purpose of wal_init_zero
Date
Msg-id 87y0z53rd6.fsf@163.com
Whole thread Raw
In response to Re: Purpose of wal_init_zero  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Purpose of wal_init_zero
List pgsql-hackers
Hi, 

> On Fri, Jan 17, 2025 at 04:29:14PM -0500, Andres Freund wrote:
>> I think what we instead ought to do is to more aggressively initialize WAL
>> files ahead of time, so it doesn't happen while holding crucial locks.  We
>> know the recent rate of WAL generation, and we could easily track up to which
>> LSN we have recycled WAL segments. Armed with that information walwriter (or
>> something else) should try to ensure that there's always a fair amount of
>> pre-allocated WAL.
>
> I put some patches together for this a few years ago [0], but ended up
> abandoning them due to lack of interest.  I'm happy to revisit that effort
> if folks do become interested.

Great to know this, I went through that thread and found the main
considerations are pretty similar with what I am thinking when working
out the Poc. I will go to [0] for further dicussion on this topic.

> [0] https://postgr.es/m/20220408203003.GA1630183%40nathanxps13
-- 
Best Regards
Andy Fan




pgsql-hackers by date:

Previous
From: Jeremy Schneider
Date:
Subject: Re: Update Unicode data to Unicode 16.0.0
Next
From: Tatsuo Ishii
Date:
Subject: Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options