Re: PreallocXlogFiles - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PreallocXlogFiles
Date
Msg-id 9451.1090505950@sss.pgh.pa.us
Whole thread Raw
In response to Re: PreallocXlogFiles  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: PreallocXlogFiles  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> On Thu, 2004-07-22 at 01:44, Tom Lane wrote:
>> Agreed.  Maybe it should be part of the bgwriter's idle loop, and
>> not directly associated with checkpoints at all.

> Yes, thats a more natural home, now bgwriter exists. But does it know
> when log files are full? How would it know?

It can run PreallocXlogFiles --- or more likely a modified version of
same.  There isn't anything that function needs to do that the bgwriter
can't do (in fact, the bgwriter is what runs checkpoints now...)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Completed TODO item?
Next
From: Tom Lane
Date:
Subject: Re: [pgsql-hackers-win32] Weird new time zone