Re: DELETE TABLE xx do not erase index file after a vacuum full ? - Mailing list pgsql-general

From Hervé Piedvache
Subject Re: DELETE TABLE xx do not erase index file after a vacuum full ?
Date
Msg-id 200407020950.56490.herve@elma.fr
Whole thread Raw
In response to Re: DELETE TABLE xx do not erase index file after a vacuum full ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom,

Le jeudi 1 Juillet 2004 19:22, Tom Lane a écrit :
> =?iso-8859-15?q?Herv=E9_Piedvache?= <herve@elma.fr> writes:
> > I have done a :
> > DELETE from my_table;
>
> TRUNCATE would serve you a lot better.

Impossible for this table because it's used by another table with a
referential integrity ... so truncate is refused ...

> For major reductions in table size VACUUM FULL is not the best tool;
> you really want to reconstruct the indexes from scratch.  Consider
> REINDEX, CLUSTER, or (in this case) TRUNCATE.
>

OK Thanks REINDEX is perfect ! ;o)

regards,
--
Hervé Piedvache

Elma Ingénierie Informatique
6 rue du Faubourg Saint-Honoré
F-75008 - Paris - France
Pho. 33-144949901
Fax. 33-144949902

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: administrating permisions, groups, owners
Next
From: Shridhar Daithankar
Date:
Subject: Re: Enough RAM for entire Database.. cost aside, is this