Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 88208632712 for ; Wed, 11 Aug 2010 02:07:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 03773-06 for ; Wed, 11 Aug 2010 05:07:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs73.luxsci.com (rs73.luxsci.com [64.49.254.135]) by mail.postgresql.org (Postfix) with ESMTP id 9A432632AA4 for ; Wed, 11 Aug 2010 02:07:14 -0300 (ADT) Received: from GNANAM (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs73.luxsci.com (8.13.8/8.13.8) with ESMTP id o7B57A4L019793; Wed, 11 Aug 2010 00:07:11 -0500 Reply-To: From: "Gnanakumar" To: Subject: Autovacuum daemon internal handling Date: Wed, 11 Aug 2010 10:37:08 +0530 Organization: Zoniac Software Private Limited Message-ID: <001d01cb3913$0e5c8f60$2b15ae20$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acs5EwwUQI3PNIRFRH+W5ZfH0rC9jw== Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201008/83 X-Sequence-Number: 35332 Hi, Our production server is running PostgreSQL v8.2.3 on Red Hat Enterprise Linux Server release 5 (Tikanga). I need a clarification on how autovacuum daemon internally works/handles in the following specific use case/situation: 1. Does autovacuum daemon works with one table at a time or does it work with multiple tables at the same time? Reason to ask this question is, let's say I've "autovacuum_naptime" set to 1 minute, and there are 500 tables in one database. Assuming there are 10 tables that has to be vacuumed and analyzed based on the threshold defined in one of the autovacuum daemon execution time, and if takes more than 1 minute to complete vacuum and analyze operation on even a single table (out of 10 tables), how does autovacuum daemon works/handles in this case? 2. The columns "last_autovaccum" and 'last_autoanalyze" in pg_stat_user_tables shows the start time or end time of the operation? Regards, Gnanam