Finally, you can call analyze on any PostgreSQL dataset to get the output of EXPLAIN ANALYZE for the query, allowing you do easily check the results of separate approaches to determine which is the most performant.