DEV Community

William Lake
William Lake

Posted on

2 1

Taming PgAdmin's SQL Formatting

Unformatted

The example query I'm using came from here.

Qualifiers

I really appreciate PgAdmin and everyone who's built it.

Who knows what I'd be doing without their hard work.

More Qualifiers

I haven't read every line of their documentation. Maybe their setup instructions include this on the very first page. Maybe they've surrounded it with exclamation points and made it bold & red. The point is, if they did- I missed it. If you find this helpful- great! If not, that's ok too. Take what works and leave the rest. Or don't, I'm not the cops.

Getting to the Point

Very Compact SQL

Option Value
Re-indent aligned? True
Re-indent? False
Spaces around operators? False
Tab size 2
Use spaces? True

Compact Format

Less Compact Easier to Read

Option Value
Re-indent aligned? True
Re-indent? True
Spaces around operators? False
Tab size 2
Use spaces? True

Less Compact Format

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay