Postgres Function Select Into Snowflake