Open an command prompt on the computer running postgresql (Start -> Run -> "cmd" [Enter]), type (or copy/paste) these lines one at a time (THERE SHOULD BE NO LINEBREAKS):
Change the database name "PT3a31-DB1" to whatever you want to query, and change the txt file names at the end if you like.
- Code: Select all
psql -A -t -d "PT3a31-DB1" -U postgres -c "select history from holdem_hand_histories hhh, holdem_hand_summary hhs WHERE hhh.id_hand = hhs.id_hand AND hhs.id_site = 100;" -o stars_hh.txt
- Code: Select all
psql -A -t -d "PT3a31-DB1" -U postgres -c "select history from holdem_hand_histories hhh, holdem_hand_summary hhs WHERE hhh.id_hand = hhs.id_hand AND hhs.id_site = 200;" -o party_hh.txt
- Code: Select all
psql -A -t -d "PT3a31-DB1" -U postgres -c "select history from holdem_hand_histories hhh, holdem_hand_summary hhs WHERE hhh.id_hand = hhs.id_hand AND hhs.id_site = 300;" -o ftp_hh.txt
it should chug for a while and make some big text files which you can later import / archive / whatever.
