Re: ThisTimeLineID in checkpointer and bgwriter processes - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: ThisTimeLineID in checkpointer and bgwriter processes
Date
Msg-id CA+U5nMJErpTuSSDAvPtHE8HFGJhERWq7_TXZTmV+_kTg582inA@mail.gmail.com
Whole thread Raw
In response to ThisTimeLineID in checkpointer and bgwriter processes  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: ThisTimeLineID in checkpointer and bgwriter processes  (Andres Freund <andres@2ndquadrant.com>)
Re: ThisTimeLineID in checkpointer and bgwriter processes  (Amit Kapila <amit.kapila@huawei.com>)
Re: ThisTimeLineID in checkpointer and bgwriter processes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 20 December 2012 13:19, Amit Kapila <amit.kapila@huawei.com> wrote:

>> So I think we're good on that front. But I'll add a comment there, and
>> use 0 explicitly instead of ThisTimeLineID, for clarity.
>
> True, it might not have any functionality effect in RemoveOldXlogFiles().
> However it can be used in PreallocXlogFiles()->XLogFileInit() as well.

PreallocXlogFiles() should have been put to the sword long ago. It's a
performance tweak aimed at people without a performance problem in
this area.

I'll happily accept this excuse to remove it.

We can discuss whether any replacement is required.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: ThisTimeLineID in checkpointer and bgwriter processes
Next
From: Andres Freund
Date:
Subject: Re: ThisTimeLineID in checkpointer and bgwriter processes