Re: Droping indexes

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mario Behring <mariobehring(at)yahoo(dot)com>
Cc: Tomas Vondra <tv(at)fuzzy(dot)cz>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Droping indexes
Date: 2007-01-16 15:08:55
Message-ID: 20070116150855.GB24671@alvh.no-ip.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Mario Behring wrote:
> Hi Tomas,
>
> Thank you.
>
> Please help me here.....I am not a database guy...........how do I use this CLUSTER command and what does it do? Please keep in mind that I do not have disk space left.........

If the disk is full you cannot use CLUSTER anyway. Suggestion: make a
note of the indexes that exist. Drop them. Do a VACUUM FULL of the
table. Create the indexes again.

After that's done:

1. read the CLUSTER documentation, as it may help you in the future

2. consider restructuring the table so that redundant information is
kept only on one place (for example, the eventackuser could probably be
put on a separate table and on this one store just an integer ID). This
will make the table and the index on that column a lot smaller.

3. add more disks to your installation

4. research a more effective VACUUM policy

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Sabin Coanda 2007-01-16 15:38:53 Removing CONTEXT message
Previous Message Mario Behring 2007-01-16 14:43:29 Re: Droping indexes