On Tue, Dec 7, 2021 at 12:35 AM SATYANARAYANA NARLAPURAM <satyanarlapu...@gmail.com> wrote: > > If the segment size is 16MB it shouldn't take much time but higher segment > values this can be a problem. But again, the current segment has to be filled > 75% to precreate new one. I am not sure how much we gain. Do you have some > numbers with different segment sizes?
I don't have the numbers. However I agree that the pre-allocation can make end-of-recovery checkpoint times more. At times, the end-of-recovery checkpoint itself will take a good amount of time and adding to it the pre-allocation of WAL time doesn't make sense. Regards, Bharath Rupireddy.