X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 241F1D1B467; Tue, 16 Dec 2003 22:03:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 17528-06; Tue, 16 Dec 2003 18:03:18 -0400 (AST) Received: from CM-lcon2-53-101.cm.vtr.net (CM-lcon2-53-101.cm.vtr.net [200.83.53.101]) by svr1.postgresql.org (Postfix) with ESMTP id 38B08D1BCB8; Tue, 16 Dec 2003 18:03:16 -0400 (AST) Received: by CM-lcon2-53-101.cm.vtr.net (Postfix, from userid 500) id 8EDE157642; Tue, 16 Dec 2003 17:03:14 -0500 (EST) Date: Tue, 16 Dec 2003 19:03:14 -0300 From: Alvaro Herrera To: Somasekhar Bangalore Cc: Jaime Casanova , pgsql-general@postgresql.org, pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org, K Harikumar , Anoop G , Sanjay Rathod Subject: Re: [GENERAL][HACKERS]data fragmentation Message-ID: <20031216220314.GE14503@dcc.uchile.cl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/269 X-Sequence-Number: 11775 On Fri, Dec 12, 2003 at 09:59:23AM +0530, Somasekhar Bangalore wrote: > Hi, > > I too had the same problem; There was one query which used to take a > very long time. What I did was, I took a backup of the whole database. > Reinstalled postgres on a different mount point and restored the data > back into the new database. Now my queries are running faster. Try it. > All the very best. You could instead apply CLUSTER to the affected tables. (I'm assuming you already apply VACUUM periodically and REINDEX as appropiate) -- Alvaro Herrera () "Everybody understands Mickey Mouse. Few understand Hermann Hesse. Hardly anybody understands Einstein. And nobody understands Emperor Norton."