PostgreSQL
Paste a PostgreSQL query below.
Paste a PostgreSQL query and get clean formatting with uppercase keywords and indented subqueries. Knows Postgres specifics like ILIKE, RETURNING, ON CONFLICT, SERIAL types and type casts.
Paste a PostgreSQL query below.
The tool masks strings and comments, then uppercases a Postgres aware keyword list covering ILIKE, RETURNING, ON CONFLICT, SERIAL, TIMESTAMPTZ and more. Clauses break onto their own lines, JOINs and their ON conditions are stacked, and nested selects indent by parenthesis depth.
UPSERTs with ON CONFLICT DO NOTHING, INSERTs with RETURNING id, and case insensitive searches with ILIKE all format cleanly. Type casts like price::numeric pass through untouched because only known keywords are uppercased.