postgresql select multiple values into variables