Re: autovacuum hung? - Mailing list pgsql-performance

From Brian Cox
Subject Re: autovacuum hung?
Date
Msg-id 4A22D5A9.2070305@ca.com
Whole thread Raw
In response to autovacuum hung?  (Brian Cox <brian.cox@ca.com>)
Responses Re: autovacuum hung?
List pgsql-performance
Tom Lane [tgl@sss.pgh.pa.us] wrote:
> They might have been blocked behind some other process that was sitting
> in an open transaction for some reason.  The other likely cause is badly
> chosen autovacuum delay, but I think that was already covered.
Well, after I noticed this running for a while, I shutdown the postgres
port and restarted postgres. The autovacuum of these tables kicked in
promptly when postgres was back up. I then let them run. So, I don't
think that surmise #1 is likely.
As for #2, I'm using the default. These tables get updated once a day
with each row (potentially) being updated 1-24 times over many minutes
to a handful of hours. Dp you think it would be better to manually
vacuum these tables? If so, would it be best to disable autovacuum of
them? And while I'm at it, if you disable autovacuum of the master table
will that disable it for the actual partitions?

  > Don't assume every row in pg_locks has a join partner in pg_class.
> You could use an outer join ...
Yes, of course. It never occurred that there could be db locks not
associated with tables.

Thanks,
Brian


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: autovacuum hung?
Next
From: Tom Lane
Date:
Subject: Re: autovacuum hung?