title: Explain vs explain analyze in PostgreSQL
body: <p>I understand that explain in postgresql just estimates the cost of a query and explain analyze does the same and also executes a query and gives the actual results.
  But I can't figure out in which cases I should use explain and explain analyze.</p>