Postgresql Function Select Into Snowflake