And now for a bit more complex question... some data here first, question in the end.
I see a
2011-03-30 19:35:26 EEST ERROR: missing FROM-clause entry for table "player" at character 2893
in a postgresqlxxxxx.log.
The 2893 is pointing to
(max(player.mycol_in_table_player)) as "mycol_in_table_player" ( (max(player.mycol_in_table_player)) is the value of a column I made via PT3, and I have made a new column in table player that's referenced here)
The FROM clause in the log is (I hid the player names)
FROM player as p, holdem_hand_summary as hhs, holdem_hand_player_statistics as hhps WHERE ( p.id_site = 100 AND (p.player_name_search='x' OR p.player_name_search='xx' OR p.player_name_search='xxx' OR p.player_name_search='xxxx') ) AND p.id_player = hhps.id_player_real AND hhps.id_hand = hhs.id_hand AND hhs.hand_no = 600xxxxxxxx) as session WHERE (holdem_hand_player_statistics.id_session = session.id_session) AND (holdem_hand_player_statistics.id_hand = holdem_hand_player_detail.id_hand AND holdem_hand_player_statistics.id_player = holdem_hand_player_detail.id_player) AND (holdem_hand_summary.id_hand = holdem_hand_player_statistics.id_hand) AND (session.id_player = holdem_hand_player_statistics.id_player) AND (holdem_hand_summary.id_hand = holdem_hand_player_detail.id_hand) AND (lookup_actions_p.id_action=holdem_hand_player_detail.id_action_p) AND ((holdem_hand_summary.cnt_players >= 3 AND holdem_hand_summary.cnt_players <= 10)AND (holdem_hand_player_statistics.date_played < '2011/03/30 00:12:03'))
The situation:
-I open a replayer window
-I get the error in the log
-previously, there were a lot more errors in the log. I changed the PT column (max(player.mycol_in_table_player)) to (max(player_real .mycol_in_table_player)) as suggested by the previous error. I think I got the replayer hud appear a lot faster. (It's still about 7 seconds from the replayer window popping up... my db is 200k ish hands)
-I've applied the stats, updated cache, rebuilt and reindexed and rebooted.... this error referencing table player instead of player_real still keeps popping up.
Where can the old definition (not referencing to player_real, but player) of the PT3 column still be lurking?
