Re: restore large database - Mailing list pgsql-general

From Richard Huxton
Subject Re: restore large database
Date
Msg-id 42B6CAA4.6030904@archonet.com
Whole thread Raw
In response to restore large database  (Wenyan Ji <wenyan@flymine.org>)
List pgsql-general
Wenyan Ji wrote:
> I am trying to restore a large database and use the commond
> cat dumpfilename | psql  dbname
> I got a out of memory error when it is trying to copy a String with size
> of 245,000,000
>
> Can anyone shed some light on it? Thanks for your help,

Why are you using cat rather than just:
   psql dbname < dumpfilename
or
   psql -f dumpfilename dbname

Also, what was the precise error message?
--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "O.B."
Date:
Subject: Re: Access is denied during initdb
Next
From: Richard Huxton
Date:
Subject: Re: Help! What has changed in the internal structure of