custom report sql query

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

custom report sql query

Postby jchysk » Sun Jun 13, 2010 6:16 am

Hi. I have a whole bunch of custom reports using dozens of custom stats. I want to take it one step further and write some queries directly to the postgresql database but I have very little experience. I figured if I could see some example queries I'd be able to figure it out so I looked through the pg_log folder and a little through this forum but I can't quite figure out even simple queries.
I'd like to be able to see what queries are being executed when I run one of my custom reports in PT3. The pg_log files seem to only update when I change the filters or it's reloading the player list on the left column. Is there a way to do this?
jchysk
 
Posts: 29
Joined: Mon Feb 18, 2008 7:40 pm

Re: custom report sql query

Postby WhiteRider » Sun Jun 13, 2010 1:49 pm

If you enable logging in PT3 (Configure > Options > Logging Enabled) then you can see all of the queries in the PokerTracker 3\PokerTracker.log file.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: custom report sql query

Postby jchysk » Sun Jun 13, 2010 2:20 pm

Thank you, exactly what I wanted.
jchysk
 
Posts: 29
Joined: Mon Feb 18, 2008 7:40 pm


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests