pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Finlay Thompson <finlay@dragonfly.co.nz>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6275: Horrible performance regression
Date: Tue, 01 Nov 2011 17:26:30 +1300
Message-ID: <4EAF74F6.6020200@catalyst.net.nz> (raw)
In-Reply-To: <201110280242.p9S2gdRI054867@wwwmaster.postgresql.org>
References: <201110280242.p9S2gdRI054867@wwwmaster.postgresql.org>

On 28/10/11 15:42, Finlay Thompson wrote:
> After upgrading the postgresql*-8.4 packages on ubuntu, to version 8.4.9,
> the script suddenly stopped working, and consuming all the ram (16GB) on the
> computer (i7).
>
>

If there is one query exhausting all ram, then it could be tricky to 
catch it in the logs (log duration and friends log the query time on 
completion... which might be never). If you have vm.overcommit_memory 
set to 2 then you may get the offending statement in the log when the 
postgres backend errors out with ENOMEM.

If you know the approx time at which memory starts filling up then 
getting (most of) the query text from pg_stat_activity would enable you 
to track down the offending sql in your load script.

regards

Mark



view thread (7+ messages)  latest in thread

Message-ID: <4EAF74F6.6020200@catalyst.net.nz>
Permalink:  ../4EAF74F6.6020200@catalyst.net.nz/
Also on:    postgresql.org/message-id/4EAF74F6.6020200@catalyst.net.nz

 · 

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-bugs@postgresql.org
  Cc: mark.kirkwood@catalyst.net.nz, finlay@dragonfly.co.nz
  Subject: Re: BUG #6275: Horrible performance regression
  In-Reply-To: <4EAF74F6.6020200@catalyst.net.nz>
  References: <201110280242.p9S2gdRI054867@wwwmaster.postgresql.org> <4EAF74F6.6020200@catalyst.net.nz>

* 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