Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AFC1A6330B7 for ; Thu, 12 Aug 2010 01:57:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67621-05 for ; Thu, 12 Aug 2010 04:57: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 AB23C632D41 for ; Thu, 12 Aug 2010 01:57: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 o7C4v7TF014999; Wed, 11 Aug 2010 23:57:09 -0500 Reply-To: From: "Gnanakumar" To: "'Alvaro Herrera'" Cc: "'pgsql-admin'" References: <001d01cb3913$0e5c8f60$2b15ae20$@com> <1281539491-sup-7017@alvh.no-ip.org> In-Reply-To: <1281539491-sup-7017@alvh.no-ip.org> Subject: Re: Autovacuum daemon internal handling Date: Thu, 12 Aug 2010 10:26:34 +0530 Organization: Zoniac Software Private Limited Message-ID: <002401cb39da$bf04aec0$3d0e0c40$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acs5aFSp93FEakdZQWC4WGi9D9tAiwAb+gwQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201008/91 X-Sequence-Number: 35340 > in 8.2 "naptime" means "time to sleep after we finish a job". So even > if the previous task takes an hour, it will still sleep a minute = before > doing another round. (Note that this setting has a different meaning = in > later releases). I couldn=E2=80=99t understand the difference in meaning of = "autovacuum_naptime" between 8.2 and later releases from the = documentation. May be I'm not understanding/seeing the subtle = difference in the documentation lines mentioned. I referred these 3 doc = links: http://www.postgresql.org/docs/8.2/interactive/runtime-config-autovacuum.= html http://www.postgresql.org/docs/8.3/interactive/runtime-config-autovacuum.= html http://www.postgresql.org/docs/8.4/interactive/runtime-config-autovacuum.= html 8.2 doc says "Specifies the delay between activity rounds for the = autovacuum daemon...." 8.3 & 8.4 doc says "Specifies the minimum delay between autovacuum runs = on any given database....." Can you please make me clear on this? > If autovacuum cannot keep up with all the vacuumable tables, you're in > trouble and should probably schedule vacuum externally. (This also > changed in later releases). Can you please point me to relevant documentation links on this change? >> 2. The columns "last_autovaccum" and 'last_autoanalyze" in >> pg_stat_user_tables shows the start time or end time of the = operation? > End time. Is there any way to find out the start time of "last_autovaccum" and/or = 'last_autoanalyze" for a given table in 8.2.3? So that I can isolate = the tables that are taking too long time to complete vacuum and/or = analyze and I can perform them externally if need.