Selection of index for CLUSTER

From: Marcin Krol <mrkafk(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Selection of index for CLUSTER
Date: 2010-02-15 15:02:29
Message-ID: 4B796205.6030500@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello everyone,

Is there some guideline for selection of index to use for CLUSTER? This
is rather important as physical table is reorganized according to that
index I gather? The docs are mute on this.

The docs recommend running ANALYZE on the table.

hrs=# ANALYZE VERBOSE hosts;
INFO: analyzing "public.hosts"
INFO: "hosts": scanned 47 of 47 pages, containing 765 live rows and 13
dead rows; 765 rows in sample, 765 estimated total rows
ANALYZE

Doh. Not much help here.

Regards,
mk

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-02-15 15:50:45 Re: vacuum analyze GROWS db ?!
Previous Message Marcin Krol 2010-02-15 14:54:11 CLUSTER cannot complete