Re: clustering by partial indexes

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Keith C(dot) Perry" <netadmin(at)vcsn(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: clustering by partial indexes
Date: 2005-11-15 18:13:19
Message-ID: 200511151813.jAFIDJt13583@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Tom Lane wrote:
> >> CLUSTER says "order the table according to the order of the entries in
> >> this index". A partial index doesn't define an ordering for the whole
> >> table, only the rows that have entries in that index. So it doesn't
> >> seem to me that you are asking for something that has a well defined
> >> meaning.
>
> > I assume it would cluster the part of the table covered by the partial
> > index, and the rest of the table would be in any order. It seems like
> > reasonable behavior, though this is the first request I can remember.
>
> But what is the point? You might as well cluster by a full index.

But I assume they created a partial index because they didn't want a
full index.

> This is *not* trivial to implement, btw, so one request with no
> justification should not be enough to get it on the TODO list.

Yea, that is the real issue I was alluding to.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2005-11-15 18:18:26 Re: clustering by partial indexes
Previous Message Tom Lane 2005-11-15 18:12:12 Re: clustering by partial indexes