Thanks J.F. I was thinking that being able to pipe the SQL through an external tool would increase flexibility for users. Everyone likes their SQL a certain way (look at the options on http://poorsql.com/ for instance). Options like these could be built into pgadmin but that seems like a lot of work.
Devs, I noticed some mentions of a built-in SQL formatter on this list from 2007. Does that functionality still exist? I can't seem to find it.
I'd like to see some code beautifier in PgAdmin too. Do you already have an eye to a CLI tool for this job?
I saw Free SQL Formatter (http://fsqlf.sourceforge.net/) under LGPL, which seems ok. May be, we can adopt it as a built-in default formatter (hope it will compile under MacOS, Solaris and FreeBSD). If things go well, it can be developed to support Postgre's SQL extensions and PL/pgSQL constructs as well.
In short, seems a good idea to me, I could participate in it's implementation :)