select column value into variable postgresql