Re: Dump CLUSTER in pg_dump

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Dump CLUSTER in pg_dump
Date: 2003-02-27 19:44:53
Message-ID: 20030227194453.GA6468@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Thu, Feb 27, 2003 at 02:24:02PM +0800, Christopher Kings-Lynne wrote:
> Currently, the fact that an index is clustered is not dumped. Unfortunately
> the only way of dumping this information is with a cluster statement itself.
>
> One possible improvement would be to sort clustered indexes first and dump
> them first, that way the cluster operation does not have to do so much
> reindexing.

Is this really a good idea? I think the clustering itself should be
done later and manually by the DBA, and the dump should only include a
command to set the indisclustered bit appropiately. What about
inventing a command to only set the bit, maybe

ALTER TABLE <tablename> CLUSTER ON <indexname>

or something like that? I can do that if people thinks it's a good
idea.

(Just returning from vacation and catching up on email).

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El miedo atento y previsor es la madre de la seguridad" (E. Burke)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-02-28 02:03:44 Re: Dump CLUSTER in pg_dump
Previous Message Joe Conway 2003-02-27 19:33:21 Re: [HACKERS] loading libraries on Postmaster startup