autovacuum strategy / parameters - Mailing list pgsql-performance

From Rick
Subject autovacuum strategy / parameters
Date
Msg-id c2d2b6cf-895f-4a4b-aa8b-3adaac33c794@z3g2000yqz.googlegroups.com
Whole thread Raw
Responses Re: autovacuum strategy / parameters  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-performance
I have a DB with small and large tables that can go up to 15G.
For performance benefits, it appears that analyze has much less cost
than vacuum, but the same benefits?
I can’t find any clear recommendations for frequencies and am
considering these parameters:

Autovacuum_vacuum_threshold = 50000
Autovacuum_analyze_threshold = 10000
Autovacuum_vacuum_scale_factor = 0.01
Autovacuum_analyze_scale_factor = 0.005

This appears it will result in table analyzes occurring around 10,000
to 85,000 dead tuples and vacuum occuring around 50,000 to 200,000,
depending on the table sizes.

Can anyone comment on whether this is the right strategy and targets
to use?

pgsql-performance by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Replacing Cursors with Temporary Tables
Next
From: norn
Date:
Subject: Re: significant slow down with various LIMIT