dbTalk Databases Forums  

[BUGS] BUG #2273: pg_restore fails with huge file (custom compression)

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2273: pg_restore fails with huge file (custom compression) in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernhard Neuhauser
 
Posts: n/a

Default [BUGS] BUG #2273: pg_restore fails with huge file (custom compression) - 02-18-2006 , 02:24 PM







The following bug has been logged online:

Bug reference: 2273
Logged by: Bernhard Neuhauser
Email address: cybernd (AT) cybernd (DOT) at
PostgreSQL version: 8.1.3
Operating system: WindowsXP
Description: pg_restore fails with huge file (custom compression)
Details:

I tried to clone my db.
So i dumped it into a file using the custom compression. (Used pgadmin3 for
this purpose)

There was no warning - the operation succeeded.
Afterwards i tried to recover it to a second postgresql instance.

The restoration command:
pg_restore.exe -i -h localhost -p 5432 -U postgres -d mydb -a -t mytable -v
"D:\db.backup"

It is impossible to restore tables at the end of the file. The thrown error:
"[custom archiver] error during file seek: Invalid argument"

Maybe its not easy to fix the bug, so a simple warning will be a huge
improvement. (warning: pg_dump with custom compression and huger db sizes
will possible fail on windows or so).

Im not sure where it fails. I think it just fails to find the start of
tables beyond a specific threshhold. But it seems like pg_restore was able
to recover my hugest table in the middle of the file, so i think that
pg_restore was able to recover data beyond 2gb. Im sorry, but im not sure if
the last recovered table also breaks the 4gb limit.

(Its easy to reproduce the behavior - tried it twice)

hth
Bernhard Neuhauser

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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.