postgresql select column into variable