Re: Fragmentation/Vacuum, Analyze, Re-Index - Mailing list pgsql-performance

From Richard Neill
Subject Re: Fragmentation/Vacuum, Analyze, Re-Index
Date
Msg-id 4B59FC1F.6050404@cam.ac.uk
Whole thread Raw
In response to Re: Fragmentation/Vacuum, Analyze, Re-Index  (DM <dm.aeqa@gmail.com>)
Responses Re: Fragmentation/Vacuum, Analyze, Re-Index
List pgsql-performance
DM wrote:
> Is there any script/tool to identify if the table requires full vacuum?
> or to re-index an existing index table?
>

Don't know if there is a script to specifically do this, though you may
find this query a useful one:

SELECT relname, reltuples, relpages FROM pg_class ORDER BY relpages DESC;


(it shows what's currently using most of the disk).


In general though, you should never use "VACUUM FULL". The best bet is
to tune autovacuum to be more aggressive, and then occasionally run CLUSTER.

Best wishes,

Richard



> Thanks
> Deepak
>

pgsql-performance by date:

Previous
From: Tory M Blue
Date:
Subject: Re: Data Set Growth causing 26+hour runtime, on what we believe to be very simple SQL
Next
From: "fkater@googlemail.com"
Date:
Subject: Re: Inserting 8MB bytea: just 25% of disk perf used?