Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6FF2C65039C for ; Thu, 4 Dec 2008 10:20:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47013-06-4 for ; Thu, 4 Dec 2008 10:20:48 -0400 (AST) X-Greylist: delayed 00:12:07.962599 by SQLgrey-1.7.6 Received: from smtp21.orange.fr (smtp21.orange.fr [80.12.242.48]) by mail.postgresql.org (Postfix) with ESMTP id 6F0F265038E for ; Thu, 4 Dec 2008 10:20:48 -0400 (AST) Received: from smtp21.orange.fr (mwinf2107 [10.232.7.35]) by mwinf2115.orange.fr (SMTP Server) with ESMTP id 9BEC91C04983 for ; Thu, 4 Dec 2008 15:08:41 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2107.orange.fr (SMTP Server) with ESMTP id 944301C000A4 for ; Thu, 4 Dec 2008 15:08:36 +0100 (CET) Received: from axege.com (LNeuilly-152-22-82-133.w193-251.abo.wanadoo.fr [193.251.23.133]) by mwinf2107.orange.fr (SMTP Server) with ESMTP id 79B3D1C00099 for ; Thu, 4 Dec 2008 15:08:36 +0100 (CET) X-ME-UUID: 20081204140836498.79B3D1C00099@mwinf2107.orange.fr Received: from localhost (localhost [127.0.0.1]) by axege.com (Postfix) with ESMTP id 46EDA50171 for ; Thu, 4 Dec 2008 15:21:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at myhostname="axege.com." Received: from axege.com ([127.0.0.1]) by localhost (axege.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jbtrskx3XbdN for ; Thu, 4 Dec 2008 15:21:41 +0100 (CET) Received: from [10.0.0.69] (unknown [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by axege.com (Postfix) with ESMTPSA id C5F5F4FE8C for ; Thu, 4 Dec 2008 15:21:41 +0100 (CET) Subject: pg_restore : out of memory From: Franck Routier To: pgsql-performance@postgresql.org Content-Type: text/plain Organization: =?ISO-8859-1?Q?Ax=E8ge?= Sarl Date: Thu, 04 Dec 2008 15:08:35 +0100 Message-Id: <1228399715.16894.22.camel@franck-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/35 X-Sequence-Number: 32071 Hi, I am trying to restore a table out of a dump, and I get an 'out of memory' error. The table I want to restore is 5GB big. Here is the exact message : admaxg@goules:/home/backup-sas$ pg_restore -F c -a -d axabas -t cabmnt axabas.dmp pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 5492; 0 43701 TABLE DATA cabmnt axabas pg_restore: [archiver (db)] COPY failed: ERROR: out of memory DETAIL: Failed on request of size 40. CONTEXT: COPY cabmnt, line 9038995: "FHSJ CPTGEN RE 200806_004 6.842725E7 6.842725E7 \N 7321100 1101 \N 00016 \N \N \N \N \N \N -1278.620..." WARNING: errors ignored on restore: 1 Looking at the os level, the process is effectively eating all memory (incl. swap), that is around 24 GB... So, here is my question : is pg_restore supposed to eat all memory ? and is there something I can do to prevent that ? Thanks, Franck