Hello,
first of all, please apologize for my bad english, I will give my best to explain the issue at hand.
I just discoverd that my postgresql db is producing errors in the event view like this:
2011-05-26 19:02:43 CEST ERROR: duplicate key value violates unique constraint "thhs-unique_hand_no"
2011-05-26 19:02:43 CEST DETAIL: Key (id_site, hand_no)=(300, 30717166481) already exists.
2011-05-26 19:02:43 CEST CONTEXT: COPY tourney_holdem_hand_summary, line 1: "31565 300 0 31 2234 30717166481 2011/05/26 16:31:00 2011/05/26 19:02:43 9 2 2 2 1500.00 1480.00 1460..."
2011-05-26 19:02:43 CEST STATEMENT: COPY tourney_holdem_hand_summary FROM STDIN;
and
2011-09-01 21:03:42 CEST ERROR: duplicate key value violates unique constraint "settings_primary_key"
2011-09-01 21:03:42 CEST DETAIL: Key (setting_name)=(cache_update:holdem) already exists.
2011-09-01 21:03:42 CEST STATEMENT: INSERT INTO settings VALUES('cache_update:holdem', '8799');
taking right from a few minutes ago.
As you can see it started already back in May this year up to then there were no errors at all, just the starting messages. I am not much of a computer geek, so haven't really been looking into the event viewer, please apologize I am asking this late.
After reading up on PT database and such, I tried housekeeping. It had not effect, the error keeps occuring on each session. Today I created a new database and reimported the hands. Same errors happening during the manual import as well. However PT does not report any errors at all, which I don't understand.
Trying to create a new database I found those errors produce during the creation process, last one top, first one bottom.
2011-09-01 21:15:47 CEST ERROR: table "tourney_omaha_cache" does not exist
2011-09-01 21:15:47 CEST STATEMENT: DROP TABLE tourney_omaha_cache;
2011-09-01 21:15:46 CEST ERROR: table "omaha_cache" does not exist
2011-09-01 21:15:46 CEST STATEMENT: DROP TABLE omaha_cache;
2011-09-01 21:15:46 CEST ERROR: table "tourney_holdem_cache" does not exist
2011-09-01 21:15:46 CEST STATEMENT: DROP TABLE tourney_holdem_cache;
2011-09-01 21:15:46 CEST ERROR: table "holdem_cache" does not exist
2011-09-01 21:15:46 CEST STATEMENT: DROP TABLE holdem_cache;
2011-09-01 21:15:46 CEST ERROR: relation "holdem_cache" does not exist at character 32
2011-09-01 21:15:46 CEST STATEMENT: SELECT min(position_type) FROM holdem_cache WHERE 1=2;
What can I do to get the database repaired? I have all hand histories saved, so it would be no problem to start from scratch, but I am afraid of de-installing somewhat, not sure whether those errors are still there because something is corrupted?
I haven't noticed explicetly that PT is running bad or has wrong numbers, but that is only my view, is there a way I could find the hand for example from the error and look it up in PT?
I am sorry if this sounds confusing, but I hope you guys get an idea what I mean.
Regards,
Robert