> How will I enable command string to see the commands?
in your postgresql.conf set stats_command_string = true
readhttp://www.postgresql.org/docs/8.2/interactive/monitoring-stats.html fordetails