| From: | Michael Monnerie <michael(dot)monnerie(at)is(dot)it-management(dot)at> |
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Updating a very large table |
| Date: | 2009-04-24 05:21:43 |
| Message-ID: | 200904240721.47480@zmi.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Freitag 24 April 2009 Rafael Domiciano wrote:
> this table has about 15 indexes...
>
> How good are to Cluster table? Has any criteria to cluster table? How
> can I do it?
http://www.postgresql.org/docs/8.3/interactive/sql-cluster.html
CLUSTER tablename [ USING indexname after which you want data to be
sorted ]
Postgres then rewrites the whole table, which creates a new file on the
disk with the table entries written in the order of the index you chose.
Don't forget the ANALYZE afterwards.
Question: This will not rewrite the indices for that table, right? Then
a REINDEX could be interesting too.
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2009-04-24 06:07:04 | Re: Updating a very large table |
| Previous Message | Rafael Domiciano | 2009-04-24 00:28:42 | Re: Updating a very large table |