Re: more problems with count(*) on large table - Mailing list pgsql-general

From Bill Moran
Subject Re: more problems with count(*) on large table
Date
Msg-id 20070928144435.320f219f.wmoran@potentialtech.com
Whole thread Raw
In response to Re: more problems with count(*) on large table  (Mike Charnoky <noky@nextbus.com>)
List pgsql-general
In response to Mike Charnoky <noky@nextbus.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

pgsql-general by date:

Previous
From: Mike Charnoky
Date:
Subject: Re: more problems with count(*) on large table
Next
From: Bruce Momjian
Date:
Subject: Re: Using RETURNING with INTO inside pgsql