How to interpret PostgreSQL EXPLAIN ANALYZE output
EXPLAIN ANALYZE is the key to optimizing SQL statements in PostgreSQL. This article does not attempt to explain everything there is to it. Rather, I want to give you a brief introduction, explain what to look for and show you some helpful tools to visualize the output.
Source: EXPLAIN ANALYZE in PostgreSQL and how to interpret it, an article by Laurenz Albe.