Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3719E9FB95C for ; Thu, 11 Oct 2007 11:16:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 26677-05 for ; Thu, 11 Oct 2007 11:16:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by postgresql.org (Postfix) with ESMTP id 94E059FB8E2 for ; Thu, 11 Oct 2007 11:16:24 -0300 (ADT) Received: from [84.51.143.99] (helo=server3.office.archonet.com) by pih-relay05.plus.net with esmtp (Exim) id 1Ifypp-0003o1-Ny; Thu, 11 Oct 2007 15:16:22 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 002E327406B; Thu, 11 Oct 2007 15:16:20 +0100 (BST) Message-ID: <470E3034.8020309@archonet.com> Date: Thu, 11 Oct 2007 15:16:20 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: henk de wit CC: "pgsql-performance@postgresql.org" Subject: Re: Huge amount of memory consumed during transaction References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/128 X-Sequence-Number: 27150 henk de wit wrote: > Hi, > > I'm running into a problem with PostgreSQL 8.2.4 (running on 32 bit > Debian Etch/2x dual core C2D/8GB mem). The thing is that I have a > huge transaction that does 2 things: 1) delete about 300.000 rows > from a table with about 15 million rows and 2) do some (heavy) > calculations and re-insert a litlte more than 300.000 new rows. > > My problem is that this consumes huge amounts of memory. What exactly consumes all your memory? I'm assuming it's not just straight SQL. -- Richard Huxton Archonet Ltd