Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8AF1E133740B for ; Tue, 5 Apr 2011 16:07:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 31883-08 for ; Tue, 5 Apr 2011 19:06:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.161.174]) by mail.postgresql.org (Postfix) with ESMTP id 6C6CF1337BCF for ; Tue, 5 Apr 2011 16:06:54 -0300 (ADT) Received: by gxk21 with SMTP id 21so281422gxk.19 for ; Tue, 05 Apr 2011 12:06:53 -0700 (PDT) Received: by 10.236.138.231 with SMTP id a67mr23024yhj.216.1302030413665; Tue, 05 Apr 2011 12:06:53 -0700 (PDT) Received: from [10.10.3.129] (71-6-94-66.static-ip.telepacific.net [71.6.94.66]) by mx.google.com with ESMTPS id x74sm2981434yhn.54.2011.04.05.12.06.51 (version=SSLv3 cipher=OTHER); Tue, 05 Apr 2011 12:06:51 -0700 (PDT) Subject: Re: Out of memory From: Jeff Davis To: Jeremy Palmer Cc: "pgsql-general@postgresql.org" In-Reply-To: <666FB8D75E95AE42965A0E76A5E5337E06DCC19F63@prdlsmmsg01.ad.linz.govt.nz> References: <666FB8D75E95AE42965A0E76A5E5337E06DCC19F63@prdlsmmsg01.ad.linz.govt.nz> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 05 Apr 2011 12:06:50 -0700 Message-ID: <1302030410.438.35.camel@jdavis-ux.asterdata.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/151 X-Sequence-Number: 174507 On Tue, 2011-04-05 at 21:50 +1200, Jeremy Palmer wrote: > Hi, > > I've been having repeated troubles trying to get a PostgreSQL app to play nicely on Ubuntu. I recently posted a message on this list about an out of memory error and got a resolution by reducing the work_mem setting. However I'm now getting further out of memory issues during the same stage of plpgsql function as mentioned before. > > The function itself is run as part of larger transaction which does the following: Where is the source to the function? Regards, Jeff Davis