pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill Moran <wmoran@collaborativefusion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Advice on selecting good values for work_mem?
Date: Thu, 07 Dec 2006 12:02:58 -0500
Message-ID: <16388.1165510978@sss.pgh.pa.us> (raw)
In-Reply-To: <20061207113531.98095b27.wmoran@collaborativefusion.com>
References: <20061207113531.98095b27.wmoran@collaborativefusion.com>

Bill Moran <wmoran@collaborativefusion.com> writes:
> Does the creation of a temp file trigger any logging?

No; but it wouldn't be hard to add some if you wanted.  I'd do it at
deletion, not creation, so you could log the size the file reached.
See FileClose() in src/backend/storage/file/fd.c.

> That leads to my other question.  Assuming I've got lots of
> connections (which I do), how can I determine if work_mem is too
> high?

When you start swapping, you have a problem --- so watch vmstat or
local equivalent.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <16388.1165510978@sss.pgh.pa.us>
Permalink:  ../16388.1165510978@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16388.1165510978@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, wmoran@collaborativefusion.com
  Subject: Re: Advice on selecting good values for work_mem?
  In-Reply-To: <16388.1165510978@sss.pgh.pa.us>

* 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