[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4783: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3888)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4785: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3888)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4786: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3888)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3888)
Interesting PT (Postgres) Queries - Live Poker Forums

Advanced search

Interesting PT (Postgres) Queries

Discuss PokerTracker, GT+, PokerAce and Others

Moderators: excession, LPF Police Department

Postby neverslowplay_AA » Mon Sep 05, 2005 11:59 am

Yes it does. I must have done it wrong the second time. Thanks again for all your hard work.
User avatar
neverslowplay_AA
Enthusiast (B&M & Online)
 
Posts: 92
Joined: Wed Dec 15, 2004 10:10 pm
Location: Vista,Ca

Postby BigPhish » Fri Sep 09, 2005 3:28 pm

Do you just use the Postgre admin tool to run the queries, or is there something in PT I can't find... :?:
-BigPhish
From my bankroll to yours, all across the Internet.
User avatar
BigPhish
 
Posts: 851
Joined: Thu Dec 16, 2004 3:47 pm

Postby neverslowplay_AA » Fri Sep 09, 2005 5:16 pm

User avatar
neverslowplay_AA
Enthusiast (B&M & Online)
 
Posts: 92
Joined: Wed Dec 15, 2004 10:10 pm
Location: Vista,Ca

Postby APerfect10 » Fri Sep 23, 2005 10:30 am

User avatar
APerfect10
 
Posts: 208
Joined: Mon Feb 14, 2005 2:11 pm
Location: Pennsylvania

Postby APerfect10 » Fri Sep 23, 2005 10:36 am

User avatar
APerfect10
 
Posts: 208
Joined: Mon Feb 14, 2005 2:11 pm
Location: Pennsylvania

Postby Chance Artanis » Wed Jan 24, 2007 8:11 am

User avatar
Chance Artanis
 
Posts: 482
Joined: Mon Dec 12, 2005 3:44 am

Postby NorthView » Wed Jan 24, 2007 1:00 pm

How many times have I either been all in or against an all in player, and how many of those have I won?


select distinct sum(gp.won_hand) as num_hands_won, count(gp.*) as num_hands

from game g

inner join game_players gp
on gp.game_id = g.game_id

inner join prefs pr
on pr.pref_value = gp.player_id
and pr.pref_key = 'RP'

inner join game_players gp2
on gp2.game_id = g.game_id

inner join players p
on p.player_id = gp.player_id

inner join players p2
on p2.player_id = gp2.player_id

where p2.player_id != gp.player_id
and (gp.pre_flop_bet + gp.flop_bet + gp.turn_bet + gp.river_bet >= gp.chip_count
or gp2.pre_flop_bet + gp2.flop_bet + gp2.turn_bet + gp2.river_bet >= gp2.chip_count)
and gp2.went_to_showdown_n = 1
and gp.went_to_showdown_n = 1
Mon May 12, 2008 1:46 am
When I play a patient and relaxed game I win - that simple.

Mon May 12, 2008 10:55 pm
Seriously, fuck poker.
==================================================================

[21:03] NorthViewBTP: mac is a fellow mexican
[21:03] Mekosking: yup
[21:03] NorthViewBTP: you should support your bro
[21:03] Mekosking: therefore hes a fat worthless tsr obv
User avatar
NorthView
 
Posts: 5998
Joined: Sun Apr 03, 2005 8:02 am
Location: Not another flush card

Postby Jossnaz » Sun Jul 08, 2007 6:34 pm

Always bet on duke
User avatar
Jossnaz
 
Posts: 706
Joined: Tue Aug 15, 2006 10:05 pm
Location: Basel dr Stadt am Rhy

Postby Semillon » Tue Jul 17, 2007 10:11 pm

Northview: The software developer in me cannot help but notice you have a "select distinct" there, 99% of the time the distinct keyword should be avoided, its slow, see article:

Often the results of a "select distinct" query can be replicated by adding a group by clause, without the performance hit.
User avatar
Semillon
 
Posts: 1547
Joined: Wed Jan 31, 2007 8:13 pm

Postby NorthView » Wed Jul 18, 2007 12:39 am

Interesting - I'm a SQL Server developer, and there's no performance hit with SELECT DISTINCT over GROUP BY in that environment, as the Optimiser produces identical Execution Plans in both cases.

I guess PostGreSQL is a bit less forgiving in some respects.
Mon May 12, 2008 1:46 am
When I play a patient and relaxed game I win - that simple.

Mon May 12, 2008 10:55 pm
Seriously, fuck poker.
==================================================================

[21:03] NorthViewBTP: mac is a fellow mexican
[21:03] Mekosking: yup
[21:03] NorthViewBTP: you should support your bro
[21:03] Mekosking: therefore hes a fat worthless tsr obv
User avatar
NorthView
 
Posts: 5998
Joined: Sun Apr 03, 2005 8:02 am
Location: Not another flush card

Postby calmone » Sat Sep 08, 2007 8:59 am

User avatar
calmone
 
Posts: 17
Joined: Mon Mar 14, 2005 3:42 pm

Postby T-Rod » Mon Sep 10, 2007 10:15 am

User avatar
T-Rod
 
Posts: 5794
Joined: Fri Jun 03, 2005 12:09 pm
Location: Dallas, Texas

Postby RedBarracuda » Mon Oct 15, 2007 6:34 am

I have NO idea how to use this... n00bster speaking, plz help
Image
(6:35:48 PM) giantgrwth: I once beat up an attempted murderer, 25% true story
(6:35:59 PM) hard2tel45s: boxing?
(6:36:06 PM) giantgrwth: Yea
(6:36:14 PM) hard2tel45s: sweet
(6:36:30 PM) giantgrwth: He was my best friend too, lol
(6:36:48 PM) hard2tel45s: well u were in the crazy bin bro
User avatar
RedBarracuda
Enthusiast (Online)
 
Posts: 3298
Joined: Fri Mar 02, 2007 4:38 pm
Location: Croatia

Postby NorthView » Mon Oct 15, 2007 6:37 am

Only applies if you've converted your PT db to PostGreSQL

Run PGAdmin
Open the db (with password)
Open a query window
C/P or type in your query
Hit Run or F8



Alternatively, don't bother and wait for Holdem Manager (and/or PT3).
Mon May 12, 2008 1:46 am
When I play a patient and relaxed game I win - that simple.

Mon May 12, 2008 10:55 pm
Seriously, fuck poker.
==================================================================

[21:03] NorthViewBTP: mac is a fellow mexican
[21:03] Mekosking: yup
[21:03] NorthViewBTP: you should support your bro
[21:03] Mekosking: therefore hes a fat worthless tsr obv
User avatar
NorthView
 
Posts: 5998
Joined: Sun Apr 03, 2005 8:02 am
Location: Not another flush card

Postby RedBarracuda » Mon Oct 15, 2007 6:51 am

Image
(6:35:48 PM) giantgrwth: I once beat up an attempted murderer, 25% true story
(6:35:59 PM) hard2tel45s: boxing?
(6:36:06 PM) giantgrwth: Yea
(6:36:14 PM) hard2tel45s: sweet
(6:36:30 PM) giantgrwth: He was my best friend too, lol
(6:36:48 PM) hard2tel45s: well u were in the crazy bin bro
User avatar
RedBarracuda
Enthusiast (Online)
 
Posts: 3298
Joined: Fri Mar 02, 2007 4:38 pm
Location: Croatia

Previous

Return to PokerTracker and Other Tools

Who is online

Users browsing this forum: No registered users and 2 guests

cron