Head-to-head · SQL Linters and Formatters
Sqruff vs pgFormatter
Sqruff leads on 0 checks, pgFormatter on 0, and 6 are even. Who comes out ahead on the 6 yes/no, price and count checks where we have data for both products. The editor score weighs everything else too.
Our verdict
- Highest scoreSqruff · 9.1/10
- Free planboth
- Most featuresSqruff · 5 of 5
Sqruff scores higher on our rubric for sql linters and formatters: 9.1 against 8.8 out of 10; our editors rank them #2 and #3.
Sqruff is the better fit for dbt teams wanting modern linting and formatting. pgFormatter is the better fit for postgreSQL teams needing dependable formatting.
- Sqruff fits best
dbt teams wanting modern linting and formatting
- pgFormatter fits best
PostgreSQL teams needing dependable formatting
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Side by side
| Feature | Sqruff 9.1/10 Visit ↗ | pgFormatter 8.8/10 Visit ↗ |
|---|---|---|
| At a glance | ||
| Editor score | 9.1 | 8.8 |
| Ranking | #2 in SQL Linters and Formatters | #3 in SQL Linters and Formatters |
| Best for | dbt teams wanting modern linting and formatting | PostgreSQL teams needing dependable formatting |
| Pricing model | Free | Free |
| Starting price | Free plan | Free plan |
| Free plan | ✓ | ✓ |
| Free trial | — | — |
| Deployment | Cloud, Self-hosted | Self-hosted, Browser extension |
| Platforms | Web, macOS | Web, Linux |
| Support | Community, Docs | Docs, Community |
| Integrations | 5 integrations | 5 integrations |
| Built for | Solo, Small business, Mid-market | Solo, Small business, Mid-market |
| Features Sqruff 5/5 · pgFormatter 4/5 | ||
| Automatic fixes | ✓ | ✓ |
| Custom rules | ✓ (best) | Not checked yet |
| Editor extensions | ✓ | ✓ |
| CI/CD integration | ✓ | ✓ |
| Configuration file | ✓ | ✓ |
| Specs | ||
| Supported SQL dialects | ansi, athena, bigquery, clickhouse, databricks, db2, duckdb, exasol, greenplum, hive, mariadb, materialize, mysql, oracle, postgres, redshift, snowflake, sparksql, sqlite, starrocks, teradata, trino, tsql, vertica | SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011, PostgreSQL; works with other databases |
| Our review | ||
| Pros |
|
|
| Cons |
|
|
| Our verdict | Sqruff is an open-source SQL linter and formatter written in Rust for developers and data teams working with SQL codebases. It checks SQL against configurable rules, formats SQL automatically, and applies fixes through its CLI. The feature… Read the review → |
pgFormatter is an open-source SQL formatter and beautifier focused on PostgreSQL and PL/pgSQL. It is suited to teams that want consistent SQL formatting across command-line workflows, web or CGI usage, editor environments, and automated… Read the review → |
Strengths and trade-offs
Sqruff — where it wins
- Supports 24 SQL dialects with configurable and custom rules
- Formats SQL and applies automatic fixes through its CLI
- Connects dbt, editors, GitHub Actions, Docker, and LSP workflows
Where it doesn't
- Its verified platform coverage is narrower than SQLFluff’s
- Editor support centers on Visual Studio Code and Zed
- Requires project-level configuration for tailored team standards
pgFormatter — where it wins
- Supports PostgreSQL, PL/pgSQL, and multiple SQL standard keyword sets
- Offers CLI, CGI, web, API, text, HTML, and JSON workflows
- Integrates with editors, pre-commit, configuration files, and CI/CD
Where it doesn't
- Its strongest coverage is PostgreSQL and related SQL standards
- Configuration may require project or user configuration files
- Does not include AI features
- Sqruff9.1/10 · Free plan
A focused open-source choice for dbt teams needing linting, formatting, and CI workflows.
Visit SqruffFull verdict → - pgFormatter8.8/10 · Free plan
A configurable, open-source formatter for PostgreSQL-focused SQL workflows.
Visit pgFormatterFull verdict →
More comparisons
- SQLFluff vs Sqruff
- SQLFluff vs pgFormatter
- Sqruff vs SQL Enlight
- Sqruff vs TSQLLint
- Sqruff vs SQL Formatter
- Sqruff vs SQL Formatter VSCode
- Sqruff vs Prettier SQL
- pgFormatter vs SQL Enlight
All SQL linters and formatters comparisons → · Full ranking →
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Last updated · How we research and update


