pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stef <svb@ucs.co.za>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres function use makes machine crash.
Date: Mon, 07 Jun 2004 11:11:21 -0400
Message-ID: <3529.1086621081@sss.pgh.pa.us> (raw)
In-Reply-To: <20040607133415.09a2ce2f@svb.ucs.co.za>
References: <20040607133415.09a2ce2f@svb.ucs.co.za>

Stef <svb@ucs.co.za> writes:
> I've been dealing with a problem for the past two days
> where a certain sql statement works 2 out of 5 times, and
> the other 3 times, it causes the machine (quad Xeon 2.8GHz
> + 792543232 bytes mem, linux kernel  2.4.26-custom, pg ver 7.3.4)
> to slow down, and finally grind to a halt.

IIRC, PG prior to 7.4 had some problems with memory leaks in repeated
execution of SQL-language functions ... and your query sure looks like
it's going to be doing a lot of repeated execution of those functions.

Please try it on 7.4.2 and see if you still have a problem.

It seems somewhat interesting that you see the problem only sometimes
and not every time, but there's not much point in investigating further
if it turns out the problem is already fixed.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <3529.1086621081@sss.pgh.pa.us>
Permalink:  ../3529.1086621081@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3529.1086621081@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, svb@ucs.co.za
  Subject: Re: Postgres function use makes machine crash.
  In-Reply-To: <3529.1086621081@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