Error converting table - unable to convert PT2 to SQL

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

Error converting table - unable to convert PT2 to SQL

Postby hbundy » Tue Jul 14, 2009 7:14 pm

Sorry to bother you - finally got postgres installed after your useful posts and tried to run conversion on PT2 data - got error message:

Error Crreating table - DATAWINDOW_PREFS

7-SQLstate = 42601
error - syntax error at or near "window"
error while executing the query

I got the same error when I tried to convert the database on my other computer! HELP
hbundy
 
Posts: 7
Joined: Sun May 11, 2008 12:21 am

Re: Error converting table - unable to convert PT2 to SQL

Postby ptrack pat » Tue Jul 14, 2009 7:22 pm

What version of PostgreSQL did you install? If it's 8.4 you need to uninstall it and download either 8.2. or 8.3 because PT2 does not support 8.4.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Error converting table - unable to convert PT2 to SQL

Postby gp18089 » Thu Jul 16, 2009 4:58 pm

When I try to convert acess database to SQl I take the message:

Error creating index-player_idx_01

7-SQLSTATE=23505
ERROR:could not create unique index "player_idx_01"
Table contains duplicated values.;
Error while executing the query

Any ideas? Version 8.3
gp18089
 
Posts: 16
Joined: Thu Feb 28, 2008 5:40 am

Re: Error converting table - unable to convert PT2 to SQL

Postby ptrack pat » Thu Jul 16, 2009 7:10 pm

gp18089 wrote:When I try to convert acess database to SQl I take the message:

Error creating index-player_idx_01

7-SQLSTATE=23505
ERROR:could not create unique index "player_idx_01"
Table contains duplicated values.;
Error while executing the query

Any ideas? Version 8.3


That error would mean that the Access database you are trying to convert is corrupted.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Error converting table - unable to convert PT2 to SQL

Postby gp18089 » Fri Jul 17, 2009 1:48 am

This database has about 300,000 hands and works fine as access with PT2. I want to convert it to pSQL and then to convert it to PT3 database to start work at PT3. Can I do something or should I forget the update?
gp18089
 
Posts: 16
Joined: Thu Feb 28, 2008 5:40 am

Re: Error converting table - unable to convert PT2 to SQL

Postby ptrack pat » Fri Jul 17, 2009 9:04 am

I would suggest instead of converting it in PT2 that you use the Utilities > Export Hand Histories To File option to export all the hands in it to text files which you can then manually import into PT3. The imports into PT3 are MUCH faster, it won't take any longer than the process of converting PT2 to PostgreSQL.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Error converting table - unable to convert PT2 to SQL

Postby gp18089 » Fri Jul 17, 2009 9:16 am

What about my tournament summaries? I have made a backup for a few of them but not all. Could I request from Stars or i can export them from Poker Tracker? Thanks for the suggestion.
gp18089
 
Posts: 16
Joined: Thu Feb 28, 2008 5:40 am

Re: Error converting table - unable to convert PT2 to SQL

Postby ptrack pat » Fri Jul 17, 2009 10:09 am

The export has 2 tabs, one for ring games and one for tournaments. If you imported the Stars tournament summaries from emails then the tourney tab on that window will export those summaries as well which PT3 should be able to import.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Error converting table - unable to convert PT2 to SQL

Postby gp18089 » Mon Aug 03, 2009 2:02 am

Unfortunately, it exports the hands since 04/14/2009 when it containes hands from 2006 from Pokerstars.
gp18089
 
Posts: 16
Joined: Thu Feb 28, 2008 5:40 am

Re: Error converting table - unable to convert PT2 to SQL

Postby ptrack pat » Mon Aug 03, 2009 8:39 am

gp18089 wrote:Unfortunately, it exports the hands since 04/14/2009 when it containes hands from 2006 from Pokerstars.


If it's only exporting hands since 4/14/09 and not before then either you have some filters set on the export window or the data is corrupted. Since you had other db errors, this could be the problem. Have you been making regular backups of your data?
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm


Return to PostgreSQL Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron