Re: [HACKERS] Re: [PORTS] vacuum takes too long

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>, dave(at)turbocat(dot)de, ports(at)postgreSQL(dot)org, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: [PORTS] vacuum takes too long
Date: 1999-01-08 06:17:03
Message-ID: Pine.BSF.4.05.9901080215430.417-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-ports

On Thu, 7 Jan 1999, Bruce Momjian wrote:

> > With MVCC an occasional 'vacuum analyze' should only be noticed from the
> > performance improvements. As far as I can tell most of the work done by
> > an analyze is in reading the table data. If you make sure to write the
> > new information at the end of the transaction you only lock the indexes
> > for the amount of time it takes to write them.
> >
> > I see a 'vacuum analyze' being less of a problem than 'vacuum'.
> > Any of you experts can contradict my assumptions.
>
> The problem is that vacuum analyze does both vacuum and analyze.
> Analyze takes so long, we figured we might as well vacuum too. Maybe we
> need to change that.

There is, IMHO, no problem with them being combined...in the past, the
problem was that the whole system was effectively locked up while a vacuum
analyze was being run because one of the 'statistics' tables was being
locked during the whole thing, instead of when required...

As DeJuan points out, though, this should no longer be a problem with
MVCC...

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jose' Soares 1999-01-08 12:37:57 Re: [GENERAL] select using date
Previous Message Thomas G. Lockhart 1999-01-08 05:32:01 Re: [HACKERS] Outer Joins (and need CASE help)

Browse pgsql-ports by date

  From Date Subject
Next Message Unprivileged user 1999-01-08 08:23:48 Port Bug Report: EOL prob with documentation .tar.gz files
Previous Message Unprivileged user 1999-01-07 21:03:52 Port Bug Report: