Problems with restoring a Database

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Problems with restoring a Database

Postby circe » Sat Mar 28, 2009 2:01 am

Hi,

with the help of pgAdmin (Postgres 8.3), Windows XP, I created a backup of my hand history database.

When I try to restore this database, I get these error messages:

C:\Programme\PostgreSQL\8.3\bin\pg_restore.exe -h localhost -p 5432 -U postgres -d test "C:\Dokumente und Einstellungen\Christian\Desktop\my_handhistories_08_02_2009.backup"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2186; 0 17259 TABLE DATA holdem_hand_player_detail postgres
pg_restore: [archiver (db)] COPY failed: ERROR: extra data after last expected column
CONTEXT: COPY holdem_hand_player_detail, line 429614: "506410 4682 8 24 39 49.00 0.50 0.00 2.00 0.00 1.00 0.00 3.00 4 6 7 6 t f t f t f t f t f t f f 2.00 ..."
WARNING: errors ignored on restore: 1

Prozess beendete mit Exitcode 1.

Can you please tell me, why the restore does not work?

With kind regards

Christian
circe
 
Posts: 7
Joined: Mon May 26, 2008 3:07 pm

Re: Problems with restoring a Database

Postby WhiteRider » Sat Mar 28, 2009 6:04 am

What format did you backup in? (compress/TAR/plain)

Plain won't restore correctly - see this post.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Problems with restoring a Database

Postby circe » Sat Mar 28, 2009 6:39 am

Thank you very much for your feedback. I backed up in TAR format. Is it possible to restore my hand histories ?
circe
 
Posts: 7
Joined: Mon May 26, 2008 3:07 pm

Re: Problems with restoring a Database

Postby WhiteRider » Sat Mar 28, 2009 7:01 am

That looks as if the backup isn't correct but I'll try to get one of our postgres experts to take a look.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Problems with restoring a Database

Postby circe » Sat Mar 28, 2009 4:06 pm

Hi again,

the backup process finished with the exit code 0. Therefore I think that the backup file might be in good shape. If it is helpful for you, I can send you the backup (3,91 GB).

With kind regards

Christian
circe
 
Posts: 7
Joined: Mon May 26, 2008 3:07 pm

Re: Problems with restoring a Database

Postby WhiteRider » Sat Mar 28, 2009 4:30 pm

Yes, that does sound hopeful - you can attach your backup to a ticket on our Support system , and link to this thread in the reference field of the ticket so that we can investigate.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Problems with restoring a Database

Postby circe » Sat Mar 28, 2009 5:18 pm

I tried to attach the backup file to a support ticket, however it did not work. I think the backup is too large. It has 3,91 GB. Now what?
circe
 
Posts: 7
Joined: Mon May 26, 2008 3:07 pm

Re: Problems with restoring a Database

Postby WhiteRider » Sat Mar 28, 2009 6:44 pm

That's not too big, but you might need to zip it - right click the file > Send To Compressed Folder.
EDIT: sorry - I misread. 3.9 GB is quite a lot too big, yes. I read it as MB.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Problems with restoring a Database

Postby circe » Sat Mar 28, 2009 7:26 pm

So how can we continue to investigate the restore problem? What do you suggest?
circe
 
Posts: 7
Joined: Mon May 26, 2008 3:07 pm

Re: Problems with restoring a Database

Postby WhiteRider » Sun Mar 29, 2009 5:33 am

Please schedule a remote assistance session where someone can logon to your computer with you and directly troubleshoot/resolve the issue.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 12 guests