Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: more problems with count(*) on large table



In response to Mike Charnoky <noky(at)nextbus(dot)com>:

> The autovacuum is turned on.  Since this is pg8.1, I don't know when the
> table was actually last vacuumed.  I *did* run analyze on the table,
> though.  Also, nothing has been deleted in this table... so vacuum
> should have no affect, right?

Updated rows also produce dead tuples that require vacuuming.  If the
table is insert only, you don't need vacuum.

-- 
Bill Moran
http://www.potentialtech.com



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group