Re: Restoring a pg_dump fails with

Поиск
Список
Период
Сортировка
От Ragnar Kjørstad
Тема Re: Restoring a pg_dump fails with
Дата
Msg-id 20010426183549.E26041@vestdata.no
обсуждение исходный текст
Ответ на Restoring a pg_dump fails with  (Reiner Dassing <dassing@wettzell.ifag.de>)
Список 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 по дате отправления:

Предыдущее
От: jdassen@cistron.nl (J.H.M. Dassen (Ray))
Дата:
Сообщение: Re: error compiling 7.1 on Solaris 8 x86 (long)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Restoring a pg_dump fails with