Unix Technical Forum

restore large database

This is a discussion on restore large database within the Pgsql General forums, part of the PostgreSQL category; --> I am trying to restore a large database and use the commond cat dumpfilename | psql dbname I got ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:30 PM
Wenyan Ji
 
Posts: n/a
Default restore large database

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,

wenyan

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:30 PM
Richard Huxton
 
Posts: n/a
Default Re: restore large database

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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com