Re: Measuring degredation of CLUSTER INDEX operation

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Measuring degredation of CLUSTER INDEX operation
Дата
Msg-id dcc563d10811101537m6f546b01m3ed899e75049244@mail.gmail.com
обсуждение исходный текст
Ответ на Measuring degredation of CLUSTER INDEX operation  (Bryce Nesbitt <bryce2@obviously.com>)
Список pgsql-sql
On Mon, Nov 10, 2008 at 12:54 PM, Bryce Nesbitt <bryce2@obviously.com> wrote:
> I've got a table for which "CLUSTER tablename USING index" makes an order of
> magnitude difference.
>
> Are there ways to determine how "unclustered" this table becomes over time,
> so I can schedule downtime to recluster?  I could use the pg_stat tables,
> but this seems awkward.

You should be able to run analyze then select correlation from
pg_stats where schemaname='yourschename' and
tablename='yourtablename';

the closer you are to 1.0 the better the clustering.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bryce Nesbitt
Дата:
Сообщение: Measuring degredation of CLUSTER INDEX operation
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [PERFORM] Can we activate WAL runtime?