From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: FSM, now without WAL-logging |
Date: | 2008-09-24 15:14:59 |
Message-ID: | 48DA5973.6090209@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Heikki Linnakangas napsal(a):
> It would be
> simple to update the FSM at every heap insert and update record, but
> that then might be an unacceptable amount of overhead at recovery. Also,
> the index FSM is not yet updated during recovery.
I expect locking problems specially on small tables where FSM has only one level
instead slower recovery. Maybe background writer could update FSM info, but it
breaks modularity and It could bring problems during checkpoints.
<snip>
>
> There's one known bug left. If we crash after truncating a relation, and
> the truncation of the FSM doesn't hit the disk but the truncation of the
> main fork does, we can end up with an FSM that shows that there's free
> space on pages that don't exist anymore. The straightforward way to fix
> that is to put back the WAL-logging of FSM truncations, but given that I
> just ripped off all the rest of the WAL-logging, does anyone have other
> ideas?
What's about truncate FSM during WAL replay of main fork truncation record?
Zdenek
--
Zdenek Kotala Sun Microsystems
Prague, Czech Republic http://sun.com/postgresql
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-09-24 15:15:39 | Re: Initial prefetch performance testing |
Previous Message | Bruce Momjian | 2008-09-24 15:14:53 | Re: Proposal of SE-PostgreSQL patches (for CommitFest:Sep) |