pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: Somasekhar Bangalore <sbangalore@zensutra.com>
Cc: Jaime Casanova <el_vigia_ec@hotmail.com>
Cc: pgsql-general@postgresql.org, pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org, K Harikumar <kharikumar@zensutra.com>
Cc: Anoop G <ganoop@zensutra.com>
Cc: Sanjay Rathod <srathod@zensutra.com>
Subject: Re: [GENERAL][HACKERS]data fragmentation
Date: Tue, 16 Dec 2003 19:03:14 -0300
Message-ID: <20031216220314.GE14503@dcc.uchile.cl> (raw)
In-Reply-To: <BF493B193A334743AA9EF48945E69C13519176@exchange.india.zensutra.com>
References: <BF493B193A334743AA9EF48945E69C13519176@exchange.india.zensutra.com>

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 (<alvherre[a]dcc.uchile.cl>)
"Everybody understands Mickey Mouse. Few understand Hermann Hesse.
Hardly anybody understands Einstein. And nobody understands Emperor Norton."



view thread (4+ messages)  latest in thread

Message-ID: <20031216220314.GE14503@dcc.uchile.cl>
Permalink:  ../20031216220314.GE14503@dcc.uchile.cl/
Also on:    postgresql.org/message-id/20031216220314.GE14503@dcc.uchile.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@dcc.uchile.cl, sbangalore@zensutra.com, el_vigia_ec@hotmail.com, kharikumar@zensutra.com, ganoop@zensutra.com, srathod@zensutra.com
  Subject: Re: [GENERAL][HACKERS]data fragmentation
  In-Reply-To: <20031216220314.GE14503@dcc.uchile.cl>
  References: <BF493B193A334743AA9EF48945E69C13519176@exchange.india.zensutra.com> <20031216220314.GE14503@dcc.uchile.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox