pg_format

PostgreSQL SQL syntax beautifier

Install

All systems
curl cmd.cat/pg_format.sh
Debian Debian
apt-get install pgformatter
Ubuntu
apt-get install pgformatter
image/svg+xml Kali Linux
apt-get install pgformatter
Windows (WSL2)
sudo apt-get update sudo apt-get install pgformatter
OS X
brew install pgformatter

pgformatter

PostgreSQL SQL syntax beautifier

This SQL formatter/beautifier supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL specifics keywords. May works with any other databases too. pgFormatter can work as a console program or as a CGI. pg_format will automatically detect its environment and output as text or as HTML following the context.