Postgres Select Into Multiple Variables Solver