Damaged database

Forum with tips, support, etc, on using the PostgreSQL database with Poker Tracker. Please post any PostgreSQL questions here.

Damaged database

Postby bopunto » Wed Apr 22, 2009 6:01 pm

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.
bopunto
 
Posts: 4
Joined: Mon May 26, 2008 8:01 am

Re: Damaged database

Postby kraada » Thu Apr 23, 2009 2:11 pm

Moved to the PTv2 forum so you can get a more targeted reply.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Damaged database

Postby ptrack pat » Thu Apr 23, 2009 3:21 pm

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.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Damaged database

Postby bopunto » Fri Apr 24, 2009 3:39 am

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
bopunto
 
Posts: 4
Joined: Mon May 26, 2008 8:01 am

Re: Damaged database

Postby ptrack pat » Fri Apr 24, 2009 8:30 am

If you just click on the PTPGSQL1 database it should connect to it so you can see the list of tables.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Damaged database

Postby bopunto » Fri Apr 24, 2009 9:31 am

Ah, I'm an idiot.

After reindexing all the tables, the database cached correctly. Looks like a success. Thanks a ton.
bopunto
 
Posts: 4
Joined: Mon May 26, 2008 8:01 am


Return to PostgreSQL Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron
highfalutin