Re: GIST index : order Hack : getting the order used by CLUSTER .. USING my_index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rémi Cura <remi(dot)cura(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: GIST index : order Hack : getting the order used by CLUSTER .. USING my_index
Date: 2013-10-24 16:40:12
Message-ID: 3778.1382632812@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?Q?R=C3=A9mi_Cura?= <remi(dot)cura(at)gmail(dot)com> writes:
> I don't understand how the CLUSTER .. USING index command work then.
> It is supposed to rewrite on disk following index order. Does it do nothing
> for GIST index?

Nobody has ever demonstrated that CLUSTER has any value for anything
except btree indexes. It seems likely to me that it'd actually be
counterproductive for indexes like GiST, which depend on data arriving in
random order for the highest index levels to end up well-distributed.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2013-10-24 16:47:13 Re: PostgreSQL Point In Time Recovery
Previous Message Rémi Cura 2013-10-24 16:32:23 Re: GIST index : order Hack : getting the order used by CLUSTER .. USING my_index