Rode antes do seu select: EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON) SELECT Depois Confira no site: https://explain.dalibo.com/