Postgres Function Select Into Variable