From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Jim C(dot) Nasby" <jim(at)nasby(dot)net>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Dead Space Map version 2 |
Date: | 2007-02-27 09:51:09 |
Message-ID: | 45E3FF0D.2050104@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches pgsql-performance |
Tom Lane wrote:
> The main problem with the levels proposed by Takahiro-san is that any
> transition from FROZEN to not-FROZEN *must* be exactly recovered,
> because vacuum will never visit an allegedly frozen page at all. This
> appears to require WAL-logging DSM state changes, which is a pretty
> serious performance hit.
I doubt it would be a big performance hit. AFAICS, all the information
needed to recover the DSM is already written to WAL, so it wouldn't need
any new WAL records.
> I'd be happier if the DSM content could be
> treated as just a hint. I think that means not trusting it for whether
> a page is frozen to the extent of not needing vacuum even for
> wraparound. So I'm inclined to propose that there be only two states
> (hence only one DSM bit per page): page needs vacuum for space recovery,
> or not. Vacuum for XID wraparound would have to hit every page
> regardless.
If we don't have a frozen state, we can't use the DSM to implement
index-only scans. Index-only scans will obviously require a lot more
work than just the DSM, but I'd like to have a solution that enables it
in the future.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2007-02-27 09:53:41 | Re: Seeking Google SoC Mentors |
Previous Message | Magnus Hagander | 2007-02-27 09:37:37 | Re: Seeking Google SoC Mentors |
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Marcellino | 2007-02-27 10:24:46 | Re: POSIX shared memory support |
Previous Message | Magnus Hagander | 2007-02-27 09:40:07 | Re: POSIX shared memory support |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Uhl | 2007-02-27 13:12:00 | Opinions on Raid |
Previous Message | ITAGAKI Takahiro | 2007-02-27 09:37:12 | Re: Dead Space Map version 2 |