Snowflake Sql String Functions Substring In Postgresql