Skip site navigation (1) Skip section navigation (2)

Re: work_mem and shared_buffers

From: "Campbell, Lance" <lance(at)uiuc(dot)edu>
To: "Bill Moran" <wmoran(at)collaborativefusion(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: work_mem and shared_buffers
Date: 2007-11-09 19:05:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Wow.  That is a nice logging feature in 8.3!


Lance Campbell
Project Manager/Software Architect
Web Services at Public Affairs
University of Illinois
-----Original Message-----
From: Bill Moran [mailto:wmoran(at)collaborativefusion(dot)com] 
Sent: Friday, November 09, 2007 2:08 PM
To: Campbell, Lance
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] work_mem and shared_buffers

On Fri, 9 Nov 2007 12:08:57 -0600
"Campbell, Lance" <lance(at)uiuc(dot)edu> wrote:

> How do you know when you should up the value of work_mem?  Just play
> with the number.  Is there a query I could do that would tell me if
> PostgreSql is performing SQL that could use more memory for sorting?

8.2 and older, it can be difficult to know, and I don't have a specific

8.3 includes a parameter to log the usage of temporary files by
When a sort can't fit in the available memory, it uses a temp file, thus
you could use this new feature to track when sorts don't fit in

Bill Moran
Potential Technologies

In response to

pgsql-performance by date

Next:From: Vivek KheraDate: 2007-11-09 19:08:41
Subject: Re: dell versus hp
Previous:From: Bill MoranDate: 2007-11-09 19:04:54
Subject: Re: PostgreSQL vs MySQL, and FreeBSD

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group