Chapter 5. Visual Explain

How quickly your database responds to queries depends in part on the design of the database. You can learn how the structure of the database affects performance by using the PostgreSQL EXPLAIN and EXPLAIN ANALYZE commands to show the query plan for an optimizable query. Without Visual Explain, the output from these commands is a plain-text tree, which can be difficult to interpret for complex queries. Visual Explain's graphical display of these query plans is much easier to interpret.

EXPLAIN measures the performance cost of queries in units of disk-page fetches, which include a guess of the CPU effort converted into disk-page units as well. EXPLAIN gives estimates of:

EXPLAIN does not estimate the time spent transmitting result tuples to the frontend as this is a fixed cost that depends on the size of the result set.

NoteTo Learn More About EXPLAIN
 

The SQL commands that are optimizable and can be analyzed by EXPLAIN are:

  • SELECT

  • INSERT

  • UPDATE

  • DELETE.

For more information on the EXPLAIN and EXPLAIN ANALYZE commands, refer to the Red Hat Database SQL Guide and Reference.

For more information on performance tuning, see Performance Tips in the Red Hat Database Administrator and User's Guide.

Starting Visual Explain

To start Visual Explain, you can either:

The Visual Explain window appears.