dbTalk Databases Forums  

Problem with pg_restore

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Problem with pg_restore in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris McCormick
 
Posts: n/a

Default Problem with pg_restore - 06-03-2004 , 08:14 AM






Hi there,
I am a newbie, trying to move a pg db from PostgreSQL 7.13 on
RedHat 7.3 to PostgreSQL 7.42 on FreeBSD 4.9. The db has one table with
32,000 rows, each containing a blob. The blobs range in size from 2K to
about 300K. The entire backup .tar file is just over 3GB.

I first tried to restore using the folloing command:
pg_restore -d athena backup.tar

It ran for a while (creating all the table defs) and the I got the
following messages:
pg_restore: ERROR: literal carriage return found in data.

So, I had some bad carriage returns. I found an answer at
(http://forums.devshed.com/archive/t-99865), which suggested using sed
to fix the carriage returns. I did that, creating backup2.tar. The
problem is, when I now run the following command (after recreating the
db athena):
pg_restore -d athena backup2.tar

I get this reply _immediately_:
pg_restore: [archiver] out of memory

This happens so fast that I'm pretty sure the restore hasn't even
*started*. So, I'm not sure how it has run out of memory. This is on a
P4 2.8 GHz system with a 2GB swap and 1GB RAM.

I can restore all the other tables individually with backups to sql
and imports, but the blob table is the most important table in the db.
I've spent about 8 hours trolling through Google and mailing lists. Any
suggestions as to how I can find out more information on my problem?

Thanks in advance for your help,
Chris McCormick

PS - If I can't get this working myself, I'd be willing to pay someone
to figure it out. What would be a reasonable amount to expect to pay
for this kind of troubleshooting?


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

http://archives.postgresql.org


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.