Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F0FAE9FB295 for ; Sun, 1 Apr 2007 21:26:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84919-08 for ; Sun, 1 Apr 2007 21:26:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 15F829FB22A for ; Sun, 1 Apr 2007 21:26:26 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 333521580650; Sun, 1 Apr 2007 20:29:10 -0400 (EDT) In-Reply-To: <460FF128.8090403@cse.ohio-state.edu> References: <460D7220.9010302@cse.ohio-state.edu> <23586.1175289138@sss.pgh.pa.us> <460D8371.7080405@cse.ohio-state.edu> <460F87D0.7090800@cheapcomplexdevices.com> <460FF128.8090403@cse.ohio-state.edu> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Ron Mayer , pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: scalablility problem Date: Sun, 1 Apr 2007 20:26:35 -0400 To: Xiaoning Ding X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/3 X-Sequence-Number: 23880 I may have missed this but have you tuned your postgresql configuration ? 8.2 tuning guidelines are significantly different than 7.3 Dave On 1-Apr-07, at 1:51 PM, Xiaoning Ding wrote: > I repeated the test again. It took 0.92 second under 8.2.3. > I checked system load using top and ps. There is no other > active processes. > > Xiaoning > > Ron Mayer wrote: >> Xiaoning Ding wrote: >>> Postgresql is 7.3.18. [...] >>> 1 process takes 0.65 second to finish. >>> I update PG to 8.2.3. The results are [...] now. >>> 1 process : 0.94 second >> You sure about your test environment? Anything else >> running at the same time, perhaps? >> I'm a bit surprised that 8.2.3 would be 40% slower than 7.3.18 >> even in the single process case. >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 2: Don't 'kill -9' the postmaster > > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match