CLUSTERing a partition? - Mailing list pgsql-admin

From Dave Johansen
Subject CLUSTERing a partition?
Date
Msg-id CAAcYxUeFzDWdGAVdpZX8NDLqWo_V7o5xtnafvXmML0jG_JHFPA@mail.gmail.com
Whole thread Raw
Responses Re: CLUSTERing a partition?  (jaime soler <jaime.soler@gmail.com>)
Re: CLUSTERing a partition?  (Matheus de Oliveira <matioli.matheus@gmail.com>)
List pgsql-admin
I'm using Postgres 8.4 and I would like to cluster a partition but keep running into issues with locks. CLUSTER requires an Exclusive Lock and so it gets "stuck behind" running queries that have a Share Lock on the partition even though they are not using the partition. I would be fine if the cluster waited until after the existing queries finished, but this then causes all new queries to back up behind it. I tried doing "NO INHERIT" to remove the partition while the cluster is happening, but that also requires an Exclusive Lock and runs into the same problem.

So is there some way that I can CLUSTER a partition? I would be fine with removing the partition while the CLUSTER is happening, if that makes it possible.

Thanks,
Dave

pgsql-admin by date:

Previous
From: Venkata Balaji N
Date:
Subject: Re: I am working on trying to improve a database perfomance in version 9.2 Postgresql database server
Next
From: jaime soler
Date:
Subject: Re: CLUSTERing a partition?