From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Glen Parker <glenebob(at)nwlink(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Autovacuum Improvements |
Date: | 2006-12-20 03:43:11 |
Message-ID: | 20061220034311.GA3036@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Glen Parker wrote:
> Alvaro Herrera wrote:
> >Glen Parker wrote:
> >
> >>I'd also like to use some of this information to issue reindex and
> >>cluster commands only when they're needed. In fact, on days when I
> >>cluster, there's no need whatsoever to also vacuum those tables. This
> >>is something that autovacuum won't do at all.
> >
> >Well, I'd rather fix CLUSTER so that it reports that there are currently
> >no dead tuples in the table. This should be an easy patch that, hey,
> >maybe you could contribute ;-)
>
> I knew that would come up eventually :D. Believe me, I'd love to dig
> in, but I haven't had a postgres dev tree on my system in years and I
> don't have any time for it right now. (But there's always time to
> banter in the mailing list, right? :-) )
Heh :-)
> Actually what I meant was that autovacuum will always just vacuum. In
> some cases I'd rather it cluster instead. But on that note, it would
> also be madly useful to give CLUSTER the ability to ANALYZE as well.
Well, the problem is that CLUSTER takes an exclusive lock. That's a
no-no for an automatic job I think.
On doing an ANALYZE in conjunction with the CLUSTER, that's would be
certainly interesting, but it'd require that we refactor ANALYZE so as
to be able to "reuse" another scan. It would be nice to do it anyway
and allow it to reuse VACUUM's scan as well, so that it doesn't have to
do a separate one. (And it would also be nicer because it'd would be
able to determine n_distinct more accurately, which is something people
often wish for.)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Matt Burry | 2006-12-20 03:47:09 | Re: postgres kerberos how to |
Previous Message | Glen Parker | 2006-12-20 02:28:05 | Re: Autovacuum Improvements |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-12-20 03:44:53 | Re: column ordering, was Re: [PATCHES] Enums patch v2 |
Previous Message | Bruce Momjian | 2006-12-20 03:40:06 | Re: Companies Contributing to Open Source |