Re: Re: Loading optimization - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Re: Loading optimization
Date
Msg-id 200101111848.NAA26404@candle.pha.pa.us
Whole thread Raw
In response to Re: Re: Loading optimization  (kleptog@cupid.suninternet.com (Martijn van Oosterhout))
List pgsql-general
> Also, in our case, clustering by a single index is not really sufficient.
> Within a single bill we would like to cluster the items by service. I was
> thinking or writing a program that would do a pg_dump, order by columns as
> requested and then dump it back in. I would've done it except that
> Postgresql won't use the fact that it's sorted.

You can create an index on all the columns, do a CLUSTER, then drop the
index and create the one you need.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Nelio Alves Pereira Filho
Date:
Subject: Modeling tool / ODBC
Next
From: Mark Lane
Date:
Subject: postmaster won't run