From: | "Bossart, Nathan" <bossartn(at)amazon(dot)com> |
---|---|
To: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Do we need pre-allocate WAL files during end-of-recovery checkpoint? |
Date: | 2021-12-06 19:32:40 |
Message-ID: | 2F433CA6-FD9D-4D38-82BF-541FF48CA7A9@amazon.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 12/6/21, 4:54 AM, "Bharath Rupireddy" <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
> The function PreallocXlogFiles doesn't get called during
> end-of-recovery checkpoint in CreateCheckPoint, see [1]. The server
> becomes operational after the end-of-recovery checkpoint and may need
> WAL files. However, I'm not sure how beneficial it is going to be if
> the WAL is pre-allocated (as PreallocXlogFiles just allocates only 1
> extra WAL file).
There is another thread for adding more effective WAL pre-allocation
[0] that you might be interested in.
Nathan
[0] https://www.postgresql.org/message-id/flat/20201225200953.jjkrytlrzojbndh5%40alap3.anarazel.de
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2021-12-06 20:07:44 | Re: Why doesn't pgstat_report_analyze() focus on not-all-visible-page dead tuple counts, specifically? |
Previous Message | Bossart, Nathan | 2021-12-06 19:28:03 | Re: Is it correct to update db state in control file as "shutting down" during end-of-recovery checkpoint? |