postgres pg_format pg_formater - ghdrako/doc_snipets GitHub Wiki
echo "SELECT * FROM mytable WHERE id > 100" | pg_format
This outputs the formatted SQL. pgFormatter supports various options to customize the formatting style, such as indentation and capitalization of keywords.