postgresql select into two variables