When running the query the first time in psql, it is a bit slow. The second time it\'s a lot faster since the Planning Time goes down substantially.
psql