Page 1 of 1

Damaged database

PostPosted: Wed Apr 22, 2009 6:01 pm
by bopunto
My old hard drive went a bit screwy. Something about bad sectors. So it was copied (sans a few bad files in my postresql database that couldn't be gotten) onto my new hard drive.

Now, when I try to vacuum/analyze my database I get an error saying:

An error has occurred trying to perform the requested action. The error was:

7 - SQLSTATE = XX002
ERROR: index "game_players_idx_02" contains unexpected zero page at block 337497;
Error while executing the query

Any way to fix this? I tried vacuum/analyze and just plain vacuum.

I'm using PT2 and XP btw. I also had to uninstall and reinstall postgres as I suspect some files from that were missing. I was getting errors that I found out required a reinstall by searching through the forums.

Re: Damaged database

PostPosted: Thu Apr 23, 2009 2:11 pm
by kraada
Moved to the PTv2 forum so you can get a more targeted reply.

Re: Damaged database

PostPosted: Thu Apr 23, 2009 3:21 pm
by ptrack pat
You can try reindexing as detailed here
http://www.pokertracker3.com/forums/arc ... ex+pgadmin

You can just reindex the GAME_PLAYERS table as that is the one causing the error.

Re: Damaged database

PostPosted: Fri Apr 24, 2009 3:39 am
by bopunto
Bit of a problem.

Seems like maybe my only option is to start over? Problem being I don't know how to do that either.

Image

Re: Damaged database

PostPosted: Fri Apr 24, 2009 8:30 am
by ptrack pat
If you just click on the PTPGSQL1 database it should connect to it so you can see the list of tables.

Re: Damaged database

PostPosted: Fri Apr 24, 2009 9:31 am
by bopunto
Ah, I'm an idiot.

After reindexing all the tables, the database cached correctly. Looks like a success. Thanks a ton.

highfalutin