Purge a player records

General discussion of PokerTracker 3.

Moderator: Moderators

Purge a player records

Postby LaidBackAl » Thu Apr 17, 2008 10:03 pm

How do I delete a player from my database. I imported my PT2 database into PT3 and I want to keep all the records I have on everyone else, but purge mine so that I can start from scratch. Is this possible?
LaidBackAl
 
Posts: 67
Joined: Sun Mar 16, 2008 2:47 pm

Re: Purge a player records

Postby Josh » Thu Apr 17, 2008 10:14 pm

It's not possible at this time.
Josh
Site Admin
 
Posts: 6222
Joined: Sat Dec 08, 2007 6:03 pm

Re: Purge a player records

Postby mstram » Thu Apr 17, 2008 10:36 pm

Josh wrote:It's not possible at this time.


I assume you mean from the PT program.

Deleting using the Postgres tools (pgAdmin3.exe) will work won't it ?

Mike
mstram
 
Posts: 22
Joined: Thu Mar 13, 2008 12:09 pm

Re: Purge a player records

Postby Josh » Thu Apr 17, 2008 11:00 pm

I recommend against changing anything in the database using pgAdmin unless you KNOW what you're doing. Removing a player from the database isn't as simple as deleting their records.
Josh
Site Admin
 
Posts: 6222
Joined: Sat Dec 08, 2007 6:03 pm

Re: Purge a player records

Postby mstram » Fri Apr 18, 2008 1:17 am

Josh wrote: Removing a player from the database isn't as simple as deleting their records.


What do you mean by "their records" ?

If you mean just deleting the record from the "player" table, yes I realize that is not the correct way.

Would deleting all records from all tables that have the 'id_player = XXX (i.e "my player id") ' field work ?

Or else setting all the fields in those tables (for id_player = XXXXX) to 0 / null/ (i.e. blank out the particular data type).

I'm familiar with relational databases, but I'm obviously not aware of what PT does internally.

Mike
mstram
 
Posts: 22
Joined: Thu Mar 13, 2008 12:09 pm

Re: Purge a player records

Postby APerfect10 » Fri Apr 18, 2008 3:05 am

I think the easiest way to do this would be to simply rename yourself rather than purging the records. If you delete every row from every table that contains your id_player then you are left with hands that are missing a player and could potentially skew some stats. Make sure that you rename both player.player_name and player.player_name_search

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4494
Joined: Sat Dec 08, 2007 6:03 pm

Re: Purge a player records

Postby mstram » Fri Apr 18, 2008 4:33 pm

Good idea !

You could also use a naming convention with a date / period incorporated, ie. "me2006_2007" or something like that, to easily implement an "archive" feature.

Mike
mstram
 
Posts: 22
Joined: Thu Mar 13, 2008 12:09 pm


Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests