Re:PgFormatter: A PostgreSQL SQL syntax beautifier
by ioltas on Thursday October 11, 2018 @12:50AM
(#18191032)
The most productive language of Gilles, well-known in the Postgres community by the way, is perl, and he can do completely crazy things with it. See for example pgbadger (https://github.com/darold/pgbadger), one of his other projects.
(Implementing a SQL formatter in pure SQL is not impossible, but would be quite a tour de force. Just a thought.)