Re: Dump CLUSTER in pg_dump

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Alvaro Herrera" <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: "Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Dump CLUSTER in pg_dump
Date: 2003-02-28 02:03:44
Message-ID: 060101c2decd$9faf6850$6500a8c0@fhp.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> > 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

No, it's not - but it's the _only_ way of doing it for 7.3.x pg_dump...

> ALTER TABLE <tablename> CLUSTER ON <indexname>
>
> or something like that? I can do that if people thinks it's a good
> idea.

That's exactly what Tom's idea was - I like that particular syntax though.
It's slightly weird I guess to have the two different syntaxes I guess.

I'll add it to my list :)

Chris

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2003-02-28 03:28:44 psql re-work
Previous Message Alvaro Herrera 2003-02-27 19:44:53 Re: Dump CLUSTER in pg_dump