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:08:50
Message-ID: 200511151808.jAFI8ov12643@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> "Keith C. Perry" <netadmin(at)vcsn(dot)com> writes:
> > Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> >> "Keith C. Perry" <netadmin(at)vcsn(dot)com> writes:
> >>> This might have been discussed before but I wanted to know if clustering
> >>> tables by partial indexes will be availble in a later release of pgSQL?
> >>
> >> What in the world would it mean to do that?
>
> > I'm not sure I understand your question.
>
> 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.

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2005-11-15 18:10:15 Re: Is it databases in general, SQL or Postgresql?
Previous Message Bricklen Anderson 2005-11-15 18:00:00 Re: Is it databases in general, SQL or Postgresql?