Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Table maintenance: order of operations important?


  • From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: pgsql-admin(at)postgresql(dot)org
  • Subject: Re: Table maintenance: order of operations important?
  • Date: Thu, 20 May 2004 20:53:51 +0200
  • Message-id: <40ACFEBF.7000406@bigfoot.com> <text/plain>

Tom Lane wrote:

Jeff Boes <mur(at)qtm(dot)net> writes:

  DELETE FROM foo WHERE date_expires < now();
  VACUUM ANALYZE foo;
  CLUSTER foo;
  REINDEX TABLE foo;


How would you choose to order these (under 7.4.x) for fastest turn-around? Does it matter?


If you are going to CLUSTER then the VACUUM and the REINDEX are both
utterly redundant.

Without cluster with 7.4.2 a REINDEX is redundant after a VACUUM FULL ?



Regards
Gaetano Mendola





Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group