Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C959A2E037D for ; Wed, 26 Mar 2008 17:02:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 82665-04 for ; Wed, 26 Mar 2008 17:02:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 8A2282E037A for ; Wed, 26 Mar 2008 17:02:16 -0300 (ADT) Received: from jd-laptop (pppgd169-127.gorge.net [209.216.169.127] (may be forged)) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m2QK2kxC030381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Mar 2008 13:02:46 -0700 Date: Wed, 26 Mar 2008 13:02:13 -0700 From: "Joshua D. Drake" To: Vinubalaji Gopal Cc: "pgsql-performance@postgresql.org" Subject: Re: vacuum in Postgresql 8.0.x slowing down the database Message-ID: <20080326130213.3797bfe1@jd-laptop> In-Reply-To: <20080326124956.49e1c13d@vinu-ubuntu.abaca> References: <20080326124956.49e1c13d@vinu-ubuntu.abaca> Organization: Joshua D. Drake X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/qXnxuO8MkI8XEfLHEcdx5aA"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 26 Mar 2008 13:02:47 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/493 X-Sequence-Number: 29447 --Sig_/qXnxuO8MkI8XEfLHEcdx5aA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 26 Mar 2008 12:49:56 -0800 Vinubalaji Gopal wrote: > The big table has never been reindexed and has a primary, unique key > with btree index and one foreign key constraint. The slowness is likely attributed to Vacuum's use of I/O. When vacuum is running what does iostat -k 10 say? Joshua D. Drake --=20 The PostgreSQL Company since 1997: http://www.commandprompt.com/=20 PostgreSQL Community Conference: http://www.postgresqlconference.org/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL SPI Liaison | SPI Director | PostgreSQL political pundit --Sig_/qXnxuO8MkI8XEfLHEcdx5aA Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH6qvFATb/zqfZUUQRAidcAJ401P4PerhMNstMtK5s0YmhnQBt9ACeOWP3 E6L4v7tiee9ZCTLec/sgELM= =48SX -----END PGP SIGNATURE----- --Sig_/qXnxuO8MkI8XEfLHEcdx5aA--