X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6053F55F4A for ; Mon, 14 Mar 2005 06:18:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90942-08 for ; Mon, 14 Mar 2005 06:18:20 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by svr1.postgresql.org (Postfix) with ESMTP id E555B55EAE for ; Mon, 14 Mar 2005 06:18:19 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id j1so1728677rnf for ; Sun, 13 Mar 2005 22:18:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=FiJUFDWXZ3O+uFEJCc7m+3waulI6WWHwdfstgFzcO2se0/1Hk1X9OXQkj33cH0ws4QhkKYGbKRosLFw4/yKbWtAkn8RVDw71Mqqw6XKiRW3b+ScK5Jnmzwn1X1202s2rFxUM3Pq7kXlA9pB7sxAoLwnMje1qTpXfdPWQPMRXmu0= Received: by 10.38.11.1 with SMTP id 1mr1325759rnk; Sun, 13 Mar 2005 22:11:39 -0800 (PST) Received: by 10.38.97.43 with HTTP; Sun, 13 Mar 2005 22:11:39 -0800 (PST) Message-ID: <674d1f8a050313221149c690bb@mail.gmail.com> Date: Mon, 14 Mar 2005 11:41:39 +0530 From: Gourish Singbal Reply-To: Gourish Singbal To: pgsql-admin@postgresql.org Subject: Need Help with reindexing Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.241 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/202 X-Sequence-Number: 16700 Guys, I need some help to decide when i should reindex the indexes in the table. Postgresql 7.4.5 and linux O.S. Below is the results of vacuum analyze verbose on the table INFO: vacuuming "public.rpt_metrics" INFO: index "rpt_metrics_date_network_advertiser" now contains 102960776 row versions in 717963 pages DETAIL: 198809 index pages have been deleted, 20000 are currently reusable. CPU 30.95s/3.51u sec elapsed 770.69 sec. INFO: index "rpt_metrics_date_network" now contains 102960776 row versions in 517246 pages DETAIL: 179291 index pages have been deleted, 20000 are currently reusable. CPU 21.11s/2.69u sec elapsed 917.34 sec. INFO: index "rpt_metrics_date" now contains 102960776 row versions in 516546 pages DETAIL: 193753 index pages have been deleted, 20000 are currently reusable. CPU 20.31s/2.70u sec elapsed 975.39 sec. INFO: "rpt_metrics": found 0 removable, 102960776 nonremovable row versions in 2920718 pages DETAIL: 0 dead row versions cannot be removed yet. There were 56377053 unused item pointers. 0 pages are entirely empty. CPU 123.67s/17.41u sec elapsed 3132.89 sec. INFO: analyzing "public.rpt_metrics" INFO: "rpt_metrics": 2920718 pages, 3000 rows sampled, 176302 estimated total rows VACUUM When should i ideally reindex this table ?. (once in a month, weekly....etc) -- Best, Gourish Singbal