Postgres EXPLAIN Visualizer (Pev)

Pev is designed to make Postgres query plans easier to grok. It displays a plan as a tree, with each node representing a step that takes in a row set and produces another. Pev can show you a number of useful things:

You can tweak display options using the menu on the right.

Usage tips

Pev currently accepts only JSON formatted plans. In fact, the get the most out of it, I recommend generating a query plan using the following line: EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON). I also recommend submitting a (decently formatted) SQL query that generated the plan. Doing so will make Pev more useful.

Pev will remember the plans you analyzed. They are stored locally and are not submitted to me. This is good because no one but you will see your queries. It's also bad because you can't share them with others.

Acknowledgements

Pev was inspired and heavily influenced by the excellent explain.depesz.com. Both the tool and the corresponding help files are a great resource to learn about Postgres and its planner.

Help me improve Pev

If you want to help, there are multiple ways to contribute: