Problem converting MSAccess database to Postgresql database

Any support related posts should go here.

Problem converting MSAccess database to Postgresql database

Postby bonak_shed » Sun Jun 28, 2009 1:05 pm

Hi,

I am trying to convert my Poker Tracker Stud MS Access database to Postgresql and am getting an error at the end of the conversion process. The error
message reads:

Error creating index - game_level_idx_02

7 - SQLSTATE = 23505
ERROR: Could not create unique index "game_level_idx_02"
Table contains duplicate values.;
Error while executing the query

(See picture below)
Image

Any idea what the problem could be?

J
bonak_shed
 
Posts: 8
Joined: Thu Feb 07, 2008 11:24 am

Re: Problem converting MSAccess database to Postgresql database

Postby ptrack mike » Sun Jun 28, 2009 2:28 pm

Go to the menu, Database Maintenance and Options. Select the Misc. tab. Are there any game levels listed that have the same game level description? If so what is the level and how many games are listed for each of the duplicate level descriptions?
ptrack mike
 
Posts: 1731
Joined: Thu Feb 21, 2008 5:48 pm

Re: Problem converting MSAccess database to Postgresql database

Postby bonak_shed » Sun Jun 28, 2009 4:12 pm

H MIke,

Yes I have some duplicates, they are as follows:

$0.25/$0.50/$0.05 (6 max) Hi/L total hands 1
$0.25/$0.50/$0.05 (6 max) Hi/L total hands 10
$0.25/$0.50/$0.05 (6 max) Hi/L total hands 9
$0.25/$0.50/$0.05 (6 max) Hi/L total hands 2
$0.25/$0.50/$0.05 (6 max) Hi/L total hands 1

J
bonak_shed
 
Posts: 8
Joined: Thu Feb 07, 2008 11:24 am

Re: Problem converting MSAccess database to Postgresql database

Postby ptrack mike » Sun Jun 28, 2009 5:25 pm

OK, do this:

1. Use Utilities > Export hand histories to File to make text files out of just those duplicate game levels.

2. Go to the Utilities > Maintenance and Options window. Stay on the first tab and sort the data section at the bottom by Limit. Then go to those duplicate $0.25/$0.50/$0.05 (6 max) Hi/L sessions. Select the sessions and Purge them.

3. Now go back the Misc. tab and remove all of those game limits since they should now each show 0 hands.

4. Convert your database to PostgreSQL.

5. After you start using the PostgreSQL database you can use File > Import Hand Histories to re-import the hands files you created in Step 1.
ptrack mike
 
Posts: 1731
Joined: Thu Feb 21, 2008 5:48 pm

Re: Problem converting MSAccess database to Postgresql database

Postby bonak_shed » Sun Jun 28, 2009 11:22 pm

Mike,

That worked. Many thanks for your prompt replies.

J
bonak_shed
 
Posts: 8
Joined: Thu Feb 07, 2008 11:24 am


Return to PTS Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron