Postgres Function Select Into Oracle