Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3QGZq336663 for ; Thu, 26 Apr 2001 12:35:53 -0400 (EDT) (envelope-from ragnark@stine.vestdata.no) Received: (from ragnark@localhost) by stine.vestdata.no (8.9.3/8.9.3) id SAA31321; Thu, 26 Apr 2001 18:35:51 +0200 Date: Thu, 26 Apr 2001 18:35:49 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Reiner Dassing Cc: pgsql-admin@postgresql.org Subject: Re: Restoring a pg_dump fails with Message-ID: <20010426183549.E26041@vestdata.no> References: <3AE84026.F994B9E2@wettzell.ifag.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.5i In-Reply-To: <3AE84026.F994B9E2@wettzell.ifag.de>; from Reiner Dassing on Thu, Apr 26, 2001 at 05:35:02PM +0200 X-Archive-Number: 200104/149 X-Sequence-Number: 1289 On Thu, Apr 26, 2001 at 05:35:02PM +0200, Reiner Dassing wrote: > By upgrading von PostgreSQL 6.5.3 to 7.1.0 I restored a dump file by > psql dbname > After some time I get the following message: > ERROR: copy: line 1638280, Memory exhausted in AllocSetAlloc(56) > PQendcopy: resetting connection > > The total number of lines is about 10 Millions! > > Can anybody help me or explain what to do? > May be, I have to convert to INSERT-statements? It's probably easier to cut the command into several smaller COPY commands. All it takes is a small awk/perl/python/your_favourite_scripting_language_here thing. -- Ragnar Kjørstad