I have a table view as below:
(SELECT * FROM session_log_detail)
![Raw Data from table session_log_detail][1]
attr_name     attr_value     timestamp
A                123           1:20:45
B                234           1:20:45
C                567           1:20:45
D                234           1:20:45
A                098           2:58:20
B                478           2:58:20
"                 "              "
What I would like to do is retrieve data like:
A         B          C           D
123      234        567         234
098      478
Where the time stamp value should be equal for each row, If changed need to be on the next line. attr_values and timestamp are random values. 
I have Postgres SQL 9.0.
 
     
    