pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Domenico - Sal. F.lli Riva <domenico.mozzanica@fratelliriva.it>
Cc: pgsql-performance@postgresql.org
Subject: Re: pgsql_tmp and postgres settings
Date: Fri, 9 Jun 2006 10:59:53 -0500
Message-ID: <20060609155953.GX45331@pervasive.com> (raw)
In-Reply-To: <20060609122948.6B7419FA621@postgresql.org>
References: <20060609122948.6B7419FA621@postgresql.org>

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



view thread (4+ messages)  latest in thread

Message-ID: <20060609155953.GX45331@pervasive.com>
Permalink:  ../20060609155953.GX45331@pervasive.com/
Also on:    postgresql.org/message-id/20060609155953.GX45331@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, domenico.mozzanica@fratelliriva.it
  Subject: Re: pgsql_tmp and postgres settings
  In-Reply-To: <20060609155953.GX45331@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox