explain.depesz.com

PostgreSQL's explain analyze made readable

Result: XgqH

Settings
# exclusive inclusive rows x rows loops node
1. 0.014 62.071 ↑ 1.0 1 1

Aggregate (cost=57,806.47..57,806.48 rows=1 width=16) (actual time=62.071..62.071 rows=1 loops=1)

2. 62.045 62.045 ↑ 1.0 1 1

Index Scan using icontrato1 on contrato c (cost=0.43..57,792.01 rows=1 width=8) (actual time=38.988..62.045 rows=1 loops=1)

  • Index Cond: (procod = 28)
  • Filter: ((condatcad >= '2019-10-01'::date) AND (condatcad <= '2019-10-30'::date) AND (conati = 0))
  • Rows Removed by Filter: 66,281
3.          

SubPlan (for Aggregate)

4. 0.001 0.012 ↑ 3.0 1 1

Nested Loop (cost=0.86..41.66 rows=3 width=0) (actual time=0.012..0.012 rows=1 loops=1)

5. 0.006 0.006 ↑ 13.0 1 1

Index Scan using contrato_parcela_iu0021 on contrato_parcela cp (cost=0.43..4.51 rows=13 width=8) (actual time=0.006..0.006 rows=1 loops=1)

  • Index Cond: (concod = c.concod)
6. 0.005 0.005 ↑ 2.0 1 1

Index Only Scan using contrato_parcela_retoma_iu0011 on contrato_parcela_retomada cpm (cost=0.43..2.84 rows=2 width=8) (actual time=0.005..0.005 rows=1 loops=1)

  • Index Cond: (conparseq = cp.conparseq)
  • Heap Fetches: 1
7. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=298,119.68..390,926.00 rows=1,190,511 width=8) (never executed)

  • Hash Cond: (cpm_1.conparseq = cp_1.conparseq)
8. 0.000 0.000 ↓ 0.0 0

Seq Scan on contrato_parcela_retomada cpm_1 (cost=0.00..40,286.11 rows=1,190,511 width=8) (never executed)

9. 0.000 0.000 ↓ 0.0 0

Hash (cost=197,771.86..197,771.86 rows=5,772,786 width=16) (never executed)

10. 0.000 0.000 ↓ 0.0 0

Seq Scan on contrato_parcela cp_1 (cost=0.00..197,771.86 rows=5,772,786 width=16) (never executed)

Planning time : 0.728 ms
Execution time : 62.140 ms