Re: Huge number of disk writes after migration to 8.1 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Huge number of disk writes after migration to 8.1
Date
Msg-id 22030.1137535929@sss.pgh.pa.us
Whole thread Raw
In response to Re: Huge number of disk writes after migration to 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Huge number of disk writes after migration to 8.1
Re: Huge number of disk writes after migration to 8.1
List pgsql-bugs
Marcin <migor@op.pl> writes:
> Autovacuum is off.
> The VACUUM FULL  bottom line is:
> INFO:  free space map contains 59842 pages in 25371 relations
> DETAIL:  A total of 426720 page slots are in use (including overhead).
> 426720 page slots are required to track all free space.

> And the quick iterations for all the DBs with psql -t -c "\dt" shows
> 67654 rows.

> So there's not 81952, BUT, the tables are created (and dropped) quite
> often during the work hours (and they're regular, not TEMPORARY tables).
>  I also find out, that there were 11170 tables created (and most of them
> dropped) today.

Looking at the code, stats entries for dropped tables are cleaned out
only when a VACUUM command is done; which is something we probably ought
to change.  However, that's always been the case, so I don't understand
why your stats file is so much bigger in 8.1.  Have you changed your
vacuuming strategy at all since the 8.0 installation?  Perhaps row or
block statistics weren't enabled in the 8.0 installation and are now?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Robert Treat
Date:
Subject: improper estimates even with high statistic values
Next
From: Alvaro Herrera
Date:
Subject: Re: Huge number of disk writes after migration to 8.1