From: Bosco Rama <postgres@boscorama.com>
To: pgsql-performance@postgresql.org
Subject: Re: cluster on conditional index?
Date: Wed, 15 Aug 2012 14:19:08 -0700
Message-ID: <502C124C.5080102@boscorama.com> (raw)
In-Reply-To: <502C0F0E.2010503@agliodbs.com>
References: <CALxYTP4vNQ+_rA7eHS+-wCYs7GaQdyaFoJb7g_UzvBt1ou2Eng@mail.gmail.com>
<CAMkU=1yB0C7pZzk9tM2mAUB8RWHxnpoVLn28ZQ_uSE__uTZAcg@mail.gmail.com>
<20120814172910.GP27500@aart.rice.edu>
<CALxYTP4WM2BGqkLKq04Tt+BX2D5gf43r8AEtQzhAnvTiBnhdDg@mail.gmail.com>
<502C0F0E.2010503@agliodbs.com>
On 08/15/12 14:05, Josh Berkus wrote:
>
>> That actually makes sense to me. Cluster the rows covered by that
>> index, let the rest fall where they may. I'm typically only accessing
>> the rows covered by that index, so I'd get the benefit of the cluster
>> command but wouldn't have to spend cycles doing the cluster for rows I
>> don't care about.
>
> Sure, that's a feature request though. And thinking about it, I'm
> willing to bet that it's far harder to implement than it sounds.
>
> In the meantime, you could ad-hoc this by splitting the table into two
> partitions and clustering one of the two partitions.
Wouldn't creating a second index on the boolean itself and then clustering
on that be much easier?
Bosco.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: postgres@boscorama.com
Subject: Re: cluster on conditional index?
In-Reply-To: <502C124C.5080102@boscorama.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox