I have a large number of tables as well (though nowhere near 25000) and looked into autovacuum configuration: The autovacuum daemon runs ANALYZE commands when necessary which will collect stats. To test whether this is the cause, you could try to disable autovacuum temporarily and see if there's any effect. If so, read & understand the config. options and see what's relevant given how your tables are used. In my case I just increased autovacuum_naptime from 1min to 10min which reduced my processor usage from very little to practically negligible with no adverse effect. I believe you can define table-specific options if necessary. That default_statistics_target parameter is larger than the default of 10, presumably by design? It'll also create more processing. Regards Oliver Kohll On 8 Oct 2008, at 12:07, wstrzalka wrote:
oliver@xxxxxxxxxx / 0845 456 1810 / 07814 828608 www.gtwm.co.uk - company www.gtportalbase.com - product |