EVERYTHING XIAOMI
Get listed
Side by side

pgFormatter vs sqlfmt

pgFormatter

6.2#11 in sql linters and formattersFree plan
Free planWebAPILinuxSelf-hosted
Visit

sqlfmt

6.7#4 in sql linters and formattersFree plan
Free planWebAPILinuxSelf-hosted
Visit

What both publish

FactpgFormattersqlfmt
Editor integrationsThe README describes use with Vim and (Neo)Vim and links to Atom and Visual Studio Code integrations.The repository provides an Emacs sqlfmt-mode and a Vim ftplugin using formatprg and equalprg.
PurposepgFormatter beautifies PostgreSQL SQL queries and PL/pgSQL code, and supports keywords from several SQL standards as well as PostgreSQL-specific keywords.sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL.

pgFormatter plans

  • pgFormatterFree

sqlfmt plans

  • Browser formatterFree

Pick pgFormatter if…

It suits developers who want to format PostgreSQL or PL/pgSQL code and adjust layout or casing. It may also fit SQL workflows that use console, CGI, editor, Docker, or pre-commit setups.

Pick sqlfmt if…

It suits PostgreSQL users who want consistent SQL formatting in a CLI, browser, Go program, or supported editor. Its EXPLAIN tools may also suit teams comparing plan structure in scripts or CI.

Charts they share