X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7C7689FA42B for ; Mon, 12 Jun 2006 12:15:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 65968-04 for ; Mon, 12 Jun 2006 12:15:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 763289F9316 for ; Mon, 12 Jun 2006 12:15:33 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 01C5356441; Mon, 12 Jun 2006 10:15:30 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 12 Jun 2006 10:15:30 -0500 Date: Mon, 12 Jun 2006 10:15:30 -0500 From: "Jim C. Nasby" To: Gourish Singbal Cc: pgsql-performance@postgresql.org Subject: Re: pgsql_tmp and postgres settings Message-ID: <20060612151530.GR34196@pervasive.com> References: <20060609122948.6B7419FA621@postgresql.org> <20060609155953.GX45331@pervasive.com> <674d1f8a0606112256t71b38395gc894fcbca45afedc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <674d1f8a0606112256t71b38395gc894fcbca45afedc@mail.gmail.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060612:gourish@gmail.com::nNIudJ4aNTpy/zDn:00000000000000000000 0000000000000000000000000T1j X-Hashcash: 1:20:060612:pgsql-performance@postgresql.org::Yhb/uJw4sPuyUIfR:00000 0000000000000000000000000cHW X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/135 X-Sequence-Number: 19492 On Mon, Jun 12, 2006 at 11:26:23AM +0530, Gourish Singbal wrote: > Where is the pgsql_tmp folder present ?. i am unable to see it in the data > directory of postgresql. It will be under the *database* directory, under $PGDATA/base. SELECT oid,* FROM pg_database; will tell you what directory to look in for your database. > On 6/9/06, Jim C. Nasby wrote: > > > >On Fri, Jun 09, 2006 at 02:23:04PM +0200, Domenico - Sal. F.lli Riva > >wrote: > >> Hello, > >> > >> During insert or update, potgresql write in pgsql_tmp directory and so > >> performance are very poor. > > > >pgsql_tmp is used if a query runs out of work_mem, so you can try > >increasing that. > > > >> My configuration is: > >> > >> Work mem 10240 > >> > >> Effective_cache_size 30000 > >You're off by a factor of 10. > > > >> Shared buffers 9000 > >I'd suggest bumping that up to at least 30000. > > > >> Postgresql (RPM from official website) 8.1.0 > > > >You should upgrade to 8.1.4. There's a number of data loss bugs waiting > >to bite you. > >-- > >Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com > >Pervasive Software http://pervasive.com work: 512-231-6117 > >vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461 > > > >---------------------------(end of broadcast)--------------------------- > >TIP 4: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > > > -- > Best, > Gourish Singbal -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461