pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Decibel! <decibel@decibel.org>
To: Adrian Moisey <adrian@careerjunction.co.za>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: strange pauses
Date: Mon, 21 Jan 2008 13:29:52 -0600
Message-ID: <58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org> (raw)
In-Reply-To: <479450A6.1070004@careerjunction.co.za>
References: <478DDF83.8070106@careerjunction.co.za>
	<478DE16F.50308@archonet.com>
	<4790863E.4000309@careerjunction.co.za>
	<47909577.4070704@careerjunction.co.za>
	<20080118124121.GA5326@alvh.no-ip.org>
	<479450A6.1070004@careerjunction.co.za>

On Jan 21, 2008, at 1:58 AM, Adrian Moisey wrote:
>> Perhaps, if you want to avoid I/O caused by temp tables (but it's  
>> not at
>> checkpoint time, so perhaps this has nothing to do with your  
>> problem),
>> you could try raising temp_buffers.
>
> How can I find out if temp_buffers is being exceeded ?

You could monitor the pgsql_tmp directory under the appropriate  
database directory ($PGDATA/base/oid_number_of_the_database). You  
could also see how many pages temporary objects in that connection  
are using; you'd have to find the temp schema that your session is  
using (\dn pg_temp* from psql), and then

SELECT sum(relpages) FROM pg_class c JOIN pg_namespace n ON  
(c.relnamespace=n.oid) AND n.nspname='pg_temp_blah';
-- 
Decibel!, aka Jim C. Nasby, Database Architect  decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Attachments:

  smime.p7s (application/pkcs7-signature, 2.5K) download

view thread (14+ messages)

Message-ID: <58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org>
Permalink:  ../58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org/
Also on:    postgresql.org/message-id/58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: decibel@decibel.org, adrian@careerjunction.co.za, alvherre@commandprompt.com
  Subject: Re: strange pauses
  In-Reply-To: <58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org>
  References: <478DDF83.8070106@careerjunction.co.za> <478DE16F.50308@archonet.com> <4790863E.4000309@careerjunction.co.za> <47909577.4070704@careerjunction.co.za> <20080118124121.GA5326@alvh.no-ip.org> <479450A6.1070004@careerjunction.co.za> <58CD6D25-52EB-4BA1-8ECD-44A0DD3C784A@decibel.org>

* 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