Unable to execute query: SELECT

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Unable to execute query: SELECT

Postby mukzr » Thu Apr 30, 2009 4:10 pm

hi pt3 supporters ;)

I need your help again.

I imported hand from pokerstars (i did this for 1 month - every single day) and at one day I got a problem... the 28 april 2009
I dont know why, but if i want to see a graph or player statistics, etc it does not work. But e.g General - player summary DOES work.

Next day i also imported hand from pokerstars, and it worked again.

Now i tried to purge all hands from the 28 april, but there is also an error message, and 787 hands cant be purged?!

Because of this day, i e.g cannot create an graph for april.

here are 2 screens, where this problem occurs:

1st: in the General Tab, Player statistics:

[ img ]

2nd: in the graphs tab:
[ img ]

I hope you can help me ;)

regards
mukzr
 
Posts: 6
Joined: Wed Sep 03, 2008 6:12 pm

Re: Unable to execute query: SELECT

Postby kraada » Thu Apr 30, 2009 4:48 pm

There are two main reasons for this error. The first is a result of data corruption from a computer crash that requires reindexing your database. You can reindex your database from the PostgreSQL command prompt. Click Start --> Programs --> PostgreSQL --> Command Prompt. At the prompt that appears, type "reindexdb -a" and hit enter. Be aware that if you have large databases this may take a while, so be patient and wait for it to finish.

The second reason for this error is a result of faulty hardware. You can set PostgreSQL to ignore these errors by clicking Start --> Programs --> PostgreSQL --> Configuration Files --> Edit postgresql.conf. In the configuration file that appears, go to the bottom of the file and add the text "zero_damaged_pages = on" on a new line and then save and close the file. Click Start --> Programs --> PostgreSQL --> Reload Configuration and PostgreSQL will ignore the damaged data. If you continue to have problems with that hard drive, you should consider replacing it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Unable to execute query: SELECT

Postby mukzr » Sun May 03, 2009 6:03 am

hi kraada, i added zero_damaged_pages = on 2 weeks ago, so this shouldnt be the problem.

so now i tried to reindexdb -a, but i have to enter a password, and all my passwords does not work (user has the same problem here)

and if i try to type \l or \connect in the "Command Prompt" it tells me, that this command does not exist.

Now i tried to reindexdb on this way: stars -> programs -> postgreSQL 8.3 -> pgAdmin III and than databeses -> rightclick my damages database -> maintainance -> REINDEX

and this is the outcome:

NOTICE: table "pg_class" was reindexedNOTICE: table "sql_features" was reindexedNOTICE: table "sql_implementation_info" was reindexedNOTICE: table "pg_statistic" was reindexedNOTICE: table "sql_languages" was reindexedNOTICE: table "sql_packages" was reindexedNOTICE: table "sql_parts" was reindexedNOTICE: table "sql_sizing" was reindexedNOTICE: table "sql_sizing_profiles" was reindexedNOTICE: table "pg_ts_config" was reindexedNOTICE: table "pg_ts_config_map" was reindexedNOTICE: table "pg_ts_dict" was reindexedNOTICE: table "pg_ts_parser" was reindexedNOTICE: table "pg_ts_template" was reindexedNOTICE: table "pg_type" was reindexedNOTICE: table "pg_attribute" was reindexedNOTICE: table "pg_proc" was reindexedNOTICE: table "pg_autovacuum" was reindexedNOTICE: table "pg_attrdef" was reindexedNOTICE: table "pg_constraint" was reindexedNOTICE: table "pg_inherits" was reindexedNOTICE: table "pg_index" was reindexedNOTICE: table "pg_operator" was reindexedNOTICE: table "pg_opfamily" was reindexedNOTICE: table "pg_opclass" was reindexedNOTICE: table "pg_am" was reindexedNOTICE: table "pg_amop" was reindexedNOTICE: table "pg_amproc" was reindexedNOTICE: table "pg_language" was reindexedNOTICE: table "pg_largeobject" was reindexedNOTICE: table "pg_aggregate" was reindexedNOTICE: table "pg_rewrite" was reindexedNOTICE: table "pg_trigger" was reindexedNOTICE: table "pg_description" was reindexedNOTICE: table "pg_cast" was reindexedNOTICE: table "pg_enum" was reindexedNOTICE: table "pg_namespace" was reindexedNOTICE: table "pg_conversion" was reindexedNOTICE: table "pg_depend" was reindexedNOTICE: table "holdem_hand_summary" was reindexed
ERROR: could not read block 171728 of relation 1663/16403/16426: Invalid argument

ERROR: could not read block 171728 of relation 1663/16403/16426: Invalid argument



pls help me ):

if i could just Purge this one day (28.04.2009) there would be no problems ):
mukzr
 
Posts: 6
Joined: Wed Sep 03, 2008 6:12 pm

Re: Unable to execute query: SELECT

Postby kraada » Sun May 03, 2009 10:50 am

It's possible that your hard drive has become damaged.

Try running scandisk and then defragging your hard drive and see if that helps.

The error is saying that PostgreSQL literally cannot read a specific file; deleting the file manually would cause the database to be unstable (and likely not load at all), so we need to get that file off of the unreadable (likely bad sector) area where it is. Scandisk/defrag are the best ways I can think of to do it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests