Re: Re: Loading optimization
Bruce Momjian <pgman@candle.pha.pa.us>
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Martijn van Oosterhout <kleptog@cupid.suninternet.com>
Cc: Ian Harding <iharding@pakrat.com>, pgsql-general@postgresql.org
Date: 2001-01-11T18:48:29Z
Lists: 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