From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Geoghegan <peter(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PERFORM] encouraging index-only scans |
Date: | 2013-09-06 05:22:36 |
Message-ID: | 20130906052236.GF6067@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Bruce Momjian escribió:
> Ideas
> -----
>
> I think we need to detect tables that do not have VM bits set and try to
> determine if they should be vacuumed. If a table has most of its VM
> bits set, there in need to vacuum it for VM bit setting.
I think it's shortsighted to keep thinking of autovacuum as just a way
to run VACUUM and ANALYZE. We have already discussed work items that
need to be done separately, such as truncating the last few empty pages
on a relation that was vacuumed recently. We also need to process a GIN
index' pending insertion list; and with minmax indexes I will want to
run summarization of heap page ranges.
So maybe instead of trying to think of VM bit setting as part of vacuum,
we could just keep stats about how many pages we might need to scan
because of possibly needing to set the bit, and then doing that in
autovacuum, independently from actually vacuuming the relation.
I'm not sure if we need to expose all these new maintenance actions as
SQL commands.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | wangshuo | 2013-09-06 05:59:19 | Re: Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric? |
Previous Message | Josh Berkus | 2013-09-06 04:02:27 | Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers |
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2013-09-06 07:23:15 | Re: [PERFORM] encouraging index-only scans |
Previous Message | Haribabu kommi | 2013-09-06 05:22:28 | Re: Question About WAL filename and its time stamp |