Re: select count(*) performance (vacuum did not help) - Mailing list pgsql-performance

From Bill Moran
Subject Re: select count(*) performance (vacuum did not help)
Date
Msg-id 20070924112907.cbede7e6.wmoran@collaborativefusion.com
Whole thread Raw
In response to Re: select count(*) performance (vacuum did not help)  (Gábor Farkas <gabor@nekomancer.net>)
List pgsql-performance
In response to "Gábor Farkas" <gabor@nekomancer.net>:

> Heikki Linnakangas wrote:
> > Gábor Farkas wrote:
> >>
> >> if i do a full vacuum to that table only, will the database still serve
> >> data from the other tables at a normal speed?
> >
> > Yes. The extra I/O load vacuum full generates while it's running might
> > disrupt other activity, though.
> >
>
> i see.
>
> will i achieve the same thing by simply dropping that table and
> re-creating it?

Yes.  Once you've done so, keep up the vacuum schedule you've already
established.  You may want to (as has already been suggested) explicitly
vacuum this table after large delete operations as well.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023


pgsql-performance by date:

Previous
From: "Fabiola Fernández"
Date:
Subject: TEXT or LONGTEXT?
Next
From: "Alexander Staubo"
Date:
Subject: Re: TEXT or LONGTEXT?