Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BB8122E1C5B for ; Wed, 14 Nov 2007 15:47:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 12064-07 for ; Wed, 14 Nov 2007 15:47:47 -0400 (AST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by postgresql.org (Postfix) with ESMTP id 244FF2E1973 for ; Wed, 14 Nov 2007 15:47:47 -0400 (AST) Received: by nz-out-0506.google.com with SMTP id l8so276225nzf for ; Wed, 14 Nov 2007 11:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=u0eLoJigsI7ydZND/vx9R6reqR5WIu2/1+fs/W/sDqE=; b=Uz+gPmf+tILoTLix9dSGHVmgJQAPIDCPLLJC/QWp77YsjofLG0AYCUDQY57RmQS8B+TRDe8v9FZ9gnmmBWjfiJ6VMfIeX6alDyzX6YE3794Zme5wzkvVMKyzaIVpyBS/TyYD04Z8Yb+tEyBF8z3xn9f9MJ5Y9H0WR5le4Bw+0Rc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uPkLkuqeEnlTwid4oGaQVSQ7ouIePfD+nT7YgEgfQiRDLok4DLjQRGeFzFk/WjI0LEPanorkHoAduOMC1NC0LugcQEyfxCCBPNtfPHpHNfIkdJ1snvxGfY3sYmoAYwFIfQ4bMLLHi052KUgEoC6BD5jUcj18fsqDBM7k8UeEV44= Received: by 10.114.194.1 with SMTP id r1mr150935waf.1195069661114; Wed, 14 Nov 2007 11:47:41 -0800 (PST) Received: by 10.114.171.20 with HTTP; Wed, 14 Nov 2007 11:47:41 -0800 (PST) Message-ID: Date: Wed, 14 Nov 2007 13:47:41 -0600 From: "Scott Marlowe" To: "Tena Sakai" Subject: Re: postgres bogged down beyond tolerance Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/122 X-Sequence-Number: 27365 On Nov 14, 2007 12:56 PM, Tena Sakai wrote: > > The postgres server I have (on redhat linux 2.6 with recent > Dell hardware (4 cpus)) is running terribly slow. > > A job it should have gotten done in less than 1 hour > took 7.5 hours last night. OK, before you try to fix the problem by blindly changing settings, let's figure out what the problem IS. Sounds to me like you've got bloat in your storage subsystem. psql into your database as a superuser (postgres, etc...) and run vacuum verbose; and post the last 10 or so lines here.