postgresql select case into variable