Re: ThisTimeLineID in checkpointer and bgwriter processes

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Amit Kapila <amit(dot)kapila(at)huawei(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ThisTimeLineID in checkpointer and bgwriter processes
Date: 2012-12-20 16:53:59
Message-ID: CAHGQGwE_O_U5juUDHfqtFXQqLxtkPrpbTWFffnTC3hc-pdW1DA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 21, 2012 at 1:46 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On 20 December 2012 13:19, Amit Kapila <amit(dot)kapila(at)huawei(dot)com> wrote:
>
>> True, it might not have any functionality effect in RemoveOldXlogFiles().
>> However it can be used in PreallocXlogFiles()->XLogFileInit() as well.
>
> Which is never called in recovery because we never write WAL.

No. CreateRestartPoint() calls PreallocXlogFiles(). Walreceiver may
write WAL, so PreallocXlogFiles() would be useful even during recovery
to some extent.

Regards,

--
Fujii Masao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-12-20 17:01:40 Re: ThisTimeLineID in checkpointer and bgwriter processes
Previous Message Simon Riggs 2012-12-20 16:52:21 Re: ThisTimeLineID in checkpointer and bgwriter processes