PDA

View Full Version : LOT of errors importing



Kovner
01-07-2009, 10:18 PM
Last night I was playing then went to review a few hands and a LOT of them did not show up in the list of hands under my session. I wasn't watching the import screen as I played, so I didn't know if errors were showing up.

I just tried importing a batch of other hands and I'm getting a LOT of import errors. I tried to find an error log but couldn't find one, so I don't know what other information I can give.

Kovner
01-07-2009, 10:20 PM
OK, I made a new database and it fixed it, but I'd rather not have to do this very often. Is there a way I can prevent it in the future?

morny
01-07-2009, 10:24 PM
The 2 most common causes of this problems are 1) powering off your computer or having your computer lose power while the database is doing something and 2) an old drive with bad sectors on it. Basically what happens is a small portion of a file gets slightly corrupt and then when you reboot and windows goes into that checkdsk procedure it finds the bad section and, thinking it is doing a good thing, removes it. Postgres then loads the table and a portion of it is gone so it doesn’t like that and blocks access to the entire table. Normally when this happens it is on a completely useless file that you'll never even notice is now gone and quite often it will happen to an index in the DB which can easily be rebuilt but in your case it happened to one or more of the tables.

So, to protect against this

1) keep you hands histories in case you do need to reimport
2) use a power bar and avoid hard shutdowns (when you flick the power switch on the pc)
3) if your drive is old consider replacing it with a new one. They are cheap and much faster now than even a few years ago.