Re: Restoring a pg_dump fails with - Mailing list pgsql-admin

From Ragnar Kjørstad
Subject Re: Restoring a pg_dump fails with
Date
Msg-id 20010426183549.E26041@vestdata.no
Whole thread Raw
In response to Restoring a pg_dump fails with  (Reiner Dassing <dassing@wettzell.ifag.de>)
List pgsql-admin
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 <dbname.dump
>
> 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

pgsql-admin by date:

Previous
From: jdassen@cistron.nl (J.H.M. Dassen (Ray))
Date:
Subject: Re: error compiling 7.1 on Solaris 8 x86 (long)
Next
From: Tom Lane
Date:
Subject: Re: Restoring a pg_dump fails with