Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdsjT-0000Di-Ty for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2013 02:20:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VdsjS-0007Y6-6r for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2013 02:20:34 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdsjQ-0007Xx-6p for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 02:20:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdsjJ-0000mD-A3 for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 02:20:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rA62KOwC008166; Tue, 5 Nov 2013 21:20:24 -0500 From: Tom Lane To: Robert Nix cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8578: loading a 33G (compressed) pg_dump into a fresh host and db instance crashes a postgresql process In-reply-to: References: <5526.1383700304@sss.pgh.pa.us> Comments: In-reply-to Robert Nix message dated "Tue, 05 Nov 2013 20:46:35 -0500" Date: Tue, 05 Nov 2013 21:20:24 -0500 Message-ID: <8165.1383704424@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Robert Nix writes: > Thanks for the quick response, Tom. Sure enough. I found the OOM message in > syslog. And thanks for the link. I'll try those suggestions. Just out of > curiosity, will using psql -f alter the behavior, in this case, with > respect to memory? No, since the memory consumption was happening on the server side. It is somewhat of interest why you're apparently getting a memory leak on the server side, though. Maybe you were using an unsafely large work_mem or maintenance_work_mem setting? I've also seen some reports lately suggesting that PostGIS might cause intra-query memory leaks, which might explain this if data_partitions.zone_municipality_demog_houston contains any PostGIS data types. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs