SQL Converter · PostgreSQL → Snowflake
Convert PostgreSQL SQL to Snowflake
PostgreSQL to Snowflake keeps "quotes", ::casts and ILIKE, but maps JSONB ->> access to VARIANT colon-paths and STRING_AGG to LISTAGG. A mechanical formatter only re-indents — it won’t rewrite dialect-specific syntax. The AI converter in the app translates the query and the table below shows exactly what changes.
PostgreSQL — source
Snowflake — converted
What changes from PostgreSQL to Snowflake
| PostgreSQL | Snowflake | Why |
|---|---|---|
| data->>'plan' | data:plan::string | JSONB text access becomes VARIANT colon-path plus a ::string cast. |
| STRING_AGG(x, ',') | LISTAGG(x, ',') | Snowflake string aggregation is LISTAGG. |
| ILIKE / ::cast | ILIKE / ::cast | Both are supported in Snowflake and carry over. |