pgFormatter v5.7 has been released

Posted on 2025-08-29 by HexaCluster
Related Open Source

Grenoble, France - August 29th, 2025

pgFormatter v5.7

pgFormatter, even if not perfect, is the most advanced SQL and PL/pgSQL code formatter and beautifier dedicated to PostgreSQL. It is provided as a CLI or a CGI program.

This maintenance release fixes some issues reported by users since the last release and adds some improvements.

Improvements:

  • Better formatting of UPSERT queries.
  • Better formatting of some form of CTE queries.
  • Fix warning with new Perl versions.

For the complete list of changes, please checkout the release note on https://github.com/darold/pgFormatter/blob/master/ChangeLog

Links & Credits

Thank to the developers who submitted patches and users who reported bugs and feature requests, they are all cited in the ChangeLog file.

pgFormatter is an open project. Any contribution to build a better tool is welcome. You just have to send your ideas, features requests or patches using the GitHub tools.

Links:


About pgFormatter

pgFormatter is a SQL and PL/pgSQL formatter/beautifier that supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL specifics keywords. May works with any other databases too. It shares the same code with pgBadger, so any improvement made in the parser is reversed to pgBadger. Tool created and maintained by Gilles Darold.

pgFormatter works on any platform and is available under the PostgreSQL license.