Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B36626515F1 for ; Mon, 23 Jun 2008 09:35:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40750-03 for ; Mon, 23 Jun 2008 09:35:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by postgresql.org (Postfix) with ESMTP id 183896515EF for ; Mon, 23 Jun 2008 09:35:12 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so9415729rvf.43 for ; Mon, 23 Jun 2008 05:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:sender; bh=ZrLIEoOU94Y3uQGTTm2rJIx1FfxJWr6zgvWmL+6WTGo=; b=X7h/nTG7K+7wsP/x1uEdjpecyG5pEQ6rYr1b0Dl3IScOOMDChxijTFin0PBR/B5MSF TzBK2r9p2qPgnWe4BLjJ0A7eUdPmho3mGLo+lvonZARKPz5xPxebsfFdmLUYgkhdEqUM GCOuKAWrAPzbcYURaPYaBfqslz5QP6aBETeKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id:sender; b=ekoEYpSnBOURt7cp0zAsc+B9qSB1R2Yt64sD6zkuzwrJcU61uepQXPRSyJ9OgWjWCt XgX930cR3NhwJf/cN2b5oma0Rll4kdzSDLPRf6+7OTDRDX0+4jpQIImnQ9HQCb8U3DUW d8/7SgWQU8zk9J24RkG4lJgC+M6V7rdivGWYE= Received: by 10.140.139.3 with SMTP id m3mr12696925rvd.38.1214224510885; Mon, 23 Jun 2008 05:35:10 -0700 (PDT) Received: from kitchener.local ( [69.196.152.176]) by mx.google.com with ESMTPS id k27sm1552716qba.10.2008.06.23.05.35.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Jun 2008 05:35:09 -0700 (PDT) From: Jan de Visser To: pgsql-performance@postgresql.org Subject: Re: Postgresql is very slow Date: Mon, 23 Jun 2008 08:35:58 -0400 User-Agent: KMail/1.9.9 References: <306870.66258.qm@web32707.mail.mud.yahoo.com> In-Reply-To: <306870.66258.qm@web32707.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806230835.58375.jdevisser@digitalfairway.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200806/104 X-Sequence-Number: 30454 On Monday 23 June 2008 07:06:54 bijayant kumar wrote: > Hello to list, > > We have a CentOS-5 server with postgresql-8.1.8 installed. I am struggling > with postgresql performance. Any query say select * from tablename takes > 10-15 mins to give the output, and while executing the query system loads > goes up like anything. After the query output, system loads starts > decresing. Sounds like a vacuum problem. > > Any query select,insert,update simple or complex behaves in the same way, > what i have explained above. > > System Specification: > > OS :- CentOs 5 > Postgresql 8.1.8 > RAM :- 1 GB > SWAP 2 GB > > Some relevent part(uncommented) of my /var/lib/pgsql/data/postgresql.conf > > listen_addresses = 'localhost' > max_connections = 100 > shared_buffers = 1000 You shared_buffers seems low. > > The one more strange thing is that with the same setting on another server, > postgresql is running very smooth. I had run vacum also some times back. You are aware that vacuum is supposed to be an ongoing maintenance activity, right? > > Please help me out and let me know if you need any other information. > > Thanks & Regards, > > Bijayant Kumar > > Send instant messages to your online friends http://uk.messenger.yahoo.com jan