Skip site navigation (1) Skip section navigation (2)

Re: Updating FSM on recovery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Updating FSM on recovery
Date: 2008-10-28 17:36:30
Message-ID: 9672.1225215390@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> Tom Lane wrote:
>> As far as the ugliness in XLogRecordPageWithFreeSpace goes: couldn't you
>> just call XLogReadBufferWithFork with init = true, and then initialize
>> the page if PageIsNew?

> With init=true, we don't even try to read the page from the disk (since 
> 8.3), so all FSM pages accessed during recovery would be zeroed out. I 
> don't think that's what you intended.

Ah, right.  Maybe the API change you suggested in the comment is the
way to go.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Martijn van OosterhoutDate: 2008-10-28 17:37:23
Subject: Re: Window Functions: v07 APIs and buffering strateties
Previous:From: Simon RiggsDate: 2008-10-28 17:30:24
Subject: Re: Visibility map, partial vacuums

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group