X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 44ECED1B7BC for ; Tue, 15 Jun 2004 22:39:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44823-01 for ; Wed, 16 Jun 2004 01:39:26 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6DE70D1B54D for ; Tue, 15 Jun 2004 22:39:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5G1dNIm015271; Tue, 15 Jun 2004 21:39:23 -0400 (EDT) To: ow Cc: pgsql-admin@postgresql.org Subject: Re: Out of memory error In-reply-to: <20040615202424.75345.qmail@web53908.mail.yahoo.com> References: <20040615202424.75345.qmail@web53908.mail.yahoo.com> Comments: In-reply-to ow message dated "Tue, 15 Jun 2004 13:24:23 -0700" Date: Tue, 15 Jun 2004 21:39:23 -0400 Message-ID: <15270.1087349963@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/190 X-Sequence-Number: 13850 ow writes: > insert into tableA > select * from tableB > where testdate >= '2000-01-01' and testdate <= '2002-12-31' > What's happening is that pgSql gradually takes all (well, almost) physical and > swap memory and then, I think, is getting killed by the kernel. > 1) Is this normal? No. Perhaps you have a bunch of triggers (including foreign-key checks) on tableA? If so it'd probably be best to drop them temporarily. The only reason I can think for this to eat memory is if the pending-trigger-events queue is growing ... regards, tom lane