From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restoring a pg_dump fails with
Date: Thu, 26 Apr 2001 18:35:49 +0200
Message-ID: <20010426183549.E26041@vestdata.no> (raw)
In-Reply-To: <3AE84026.F994B9E2@wettzell.ifag.de>
References: <3AE84026.F994B9E2@wettzell.ifag.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgres@ragnark.vestdata.no, dassing@wettzell.ifag.de
Subject: Re: Restoring a pg_dump fails with
In-Reply-To: <20010426183549.E26041@vestdata.no>
References: <3AE84026.F994B9E2@wettzell.ifag.de> <20010426183549.E26041@vestdata.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox