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

From Alvaro Herrera
Subject Re: Huge number of disk writes after migration to 8.1
Date
Msg-id 20060118005105.GA16342@surnet.cl
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
List pgsql-bugs
Tom Lane wrote:
> Marcin <migor@op.pl> writes:

> > 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.

I was going to ask if you were confusing pgstat_vacuum_tabstat with a
VACUUM command, when I noticed that only in vacuum() is that function
called!  This surprised me and I agree that it should be changed.  I'm
not sure what would be a more appropiate place to call it, however.

Maybe in heap_drop_with_catalog() we could place a call, or a limited
version that'd only "vacuum" the table being dropped.

--
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Having your biases confirmed independently is how scientific progress is
made, and hence made our great society what it is today" (Mary Gardiner)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Huge number of disk writes after migration to 8.1
Next
From: Tom Lane
Date:
Subject: Re: Huge number of disk writes after migration to 8.1