Skip to content
SPECIFICTION
Get listed

PgSanity vs SQLFluff

PgSanity

github.com

SQLFluff

sqlfluff.com

Side by side

FigurePgSanitySQLFluff
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Windows—Yes
macOS—Yes
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published11
Spec score · SQL Linters and Formatters7.9 (#11)8.0 (#10)
MaintainerPyPI lists Mark Drago as the project’s sole maintainer and author.The website identifies SQLFluff Ltd. as incorporated in England and gives its registered address as Unit 82a James Carter Road, Mildenhall, Bury St. Edmunds, England, IP28 7DE.
PurposePgSanity checks the syntax of PostgreSQL SQL files.SQLFluff is an open source, dialect-flexible SQL linter designed with ELT applications in mind.
SupportThe README points users to the GitHub project page to report problems.The project lists documentation, GitHub, Slack, and Stack Overflow as community channels.

Plans

PgSanity

  • FreeFree

PgSanity pricing →

SQLFluff

  • SQLFluffFree

SQLFluff pricing →

In their own words

PgSanity

PgSanity has no write-up on Specifiction yet; its figures are above.

Visit github.com

SQLFluff

SQLFluff is an open-source, dialect-flexible SQL linter designed for ELT applications. It reports style and syntax issues, parses SQL without database access and can automatically fix many violations with one command. Documentation describes support for more than 25 dialects, including T-SQL, PostgreSQL, BigQuery and Snowflake, alongside more than 70 rules for style, structure and best practices. Jinja templating and dbt are supported, and CI/CD integration includes GitHub Actions output for pull-request annotations. SQLFluff is free under the MIT License and installs from PyPI with pip or another Python package manager. It does not execute SQL itself, but templating macros such as dbt's run_query may execute arbitrary SQL. The Jinja templater uses Jinja2 SandboxedEnvironment to limit unsafe code execution. The dbt templater requires the relevant adapter and sqlfluff-templater-dbt package; models accessing a database during compilation require database access. Community support includes documentation, GitHub, Slack and Stack Overflow.

Visit sqlfluff.com