explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lCbr

Settings
# exclusive inclusive rows x rows loops node
1. 0.018 23.110 ↑ 351.0 1 1

Hash Join (cost=49.03..2,468.84 rows=351 width=14) (actual time=17.949..23.110 rows=1 loops=1)

  • Output: conjunto.cdprocesso
  • Hash Cond: ((conjunto.cdtipomvprocesso)::numeric = (fnarvoremovimentacao.cdtipomvprocesso)::numeric)
  • Buffers: shared hit=1356
2. 0.013 22.743 ↑ 17.5 4 1

Hash Semi Join (cost=26.28..2,407.42 rows=70 width=18) (actual time=17.579..22.743 rows=4 loops=1)

  • Output: conjunto.cdprocesso, conjunto.cdtipomvprocesso
  • Hash Cond: (conjunto.cdtipoprocesso = (((unnest('{0801,0802}'::text[])))::integer))
  • Buffers: shared hit=1334
3. 1.239 22.717 ↑ 17.5 4 1

Hash Join (cost=21.77..2,401.94 rows=70 width=22) (actual time=17.558..22.717 rows=4 loops=1)

  • Output: conjunto.cdprocesso, conjunto.cdtipomvprocesso, conjunto.cdtipoprocesso
  • Inner Unique: true
  • Hash Cond: ((conjunto.cdassuntoprinc)::numeric = a.cdassunto)
  • Buffers: shared hit=1334
4. 3.953 18.925 ↓ 12.1 1,687 1

Hash Semi Join (cost=4.52..2,383.45 rows=140 width=26) (actual time=4.913..18.925 rows=1,687 loops=1)

  • Output: conjunto.cdprocesso, conjunto.cdtipomvprocesso, conjunto.cdtipoprocesso, conjunto.cdassuntoprinc
  • Hash Cond: ((conjunto.cdlocal)::numeric = (((unnest('{23029}'::text[])))::numeric))
  • Buffers: shared hit=1252
5. 14.957 14.957 ↓ 14.3 4,027 1

Seq Scan on saj.efmpconjunto conjunto (cost=0.00..2,376.44 rows=281 width=30) (actual time=3.539..14.957 rows=4,027 loops=1)

  • Output: conjunto.conjuntoid, conjunto.cdclasseprocesso, conjunto.cdassuntoprinc, conjunto.cdassuntoext, conjunto.cdtipolocal, conjunto.detipolocal, conjunto.cdlocal, conjunto.delocal, conjunto.cdprocesso, conjunto.nuprocesso, conjunto.cdtipomvprocesso, conjunto.nuseqprocessomv, conjunto.dtmovimento, conjunto.cdtipoprocesso, conjunto.cdtipomvext
  • Filter: (((conjunto.dtmovimento)::date >= '2020-01-01'::date) AND ((conjunto.dtmovimento)::date <= '2020-12-31'::date))
  • Rows Removed by Filter: 52195
  • Buffers: shared hit=1252
6. 0.003 0.015 ↑ 100.0 1 1

Hash (cost=3.27..3.27 rows=100 width=32) (actual time=0.014..0.015 rows=1 loops=1)

  • Output: (((unnest('{23029}'::text[])))::numeric)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
7. 0.005 0.012 ↑ 100.0 1 1

Result (cost=0.00..2.27 rows=100 width=32) (actual time=0.008..0.012 rows=1 loops=1)

  • Output: ((unnest('{23029}'::text[])))::numeric
8. 0.006 0.007 ↑ 100.0 1 1

ProjectSet (cost=0.00..0.52 rows=100 width=32) (actual time=0.004..0.007 rows=1 loops=1)

  • Output: unnest('{23029}'::text[])
9. 0.001 0.001 ↑ 1.0 1 1

Result (cost=0.00..0.01 rows=1 width=0) (actual time=0.001..0.001 rows=1 loops=1)

10. 0.004 2.553 ↑ 200.0 1 1

Hash (cost=14.75..14.75 rows=200 width=32) (actual time=2.552..2.553 rows=1 loops=1)

  • Output: a.cdassunto
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=82
11. 0.010 2.549 ↑ 200.0 1 1

HashAggregate (cost=12.75..14.75 rows=200 width=32) (actual time=2.547..2.549 rows=1 loops=1)

  • Output: a.cdassunto
  • Group Key: a.cdassunto
  • Buffers: shared hit=82
12. 2.539 2.539 ↑ 1,000.0 1 1

Function Scan on saj.fnarvoreassunto a (cost=0.25..10.25 rows=1,000 width=32) (actual time=2.538..2.539 rows=1 loops=1)

  • Output: a.cdassunto
  • Function Call: fnarvoreassunto('12218'::character varying)
  • Buffers: shared hit=82
13. 0.003 0.013 ↑ 50.0 2 1

Hash (cost=3.27..3.27 rows=100 width=4) (actual time=0.012..0.013 rows=2 loops=1)

  • Output: (((unnest('{0801,0802}'::text[])))::integer)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
14. 0.004 0.010 ↑ 50.0 2 1

Result (cost=0.00..2.27 rows=100 width=4) (actual time=0.005..0.010 rows=2 loops=1)

  • Output: ((unnest('{0801,0802}'::text[])))::integer
15. 0.005 0.006 ↑ 50.0 2 1

ProjectSet (cost=0.00..0.52 rows=100 width=32) (actual time=0.003..0.006 rows=2 loops=1)

  • Output: unnest('{0801,0802}'::text[])
16. 0.001 0.001 ↑ 1.0 1 1

Result (cost=0.00..0.01 rows=1 width=0) (actual time=0.001..0.001 rows=1 loops=1)

17. 0.004 0.349 ↑ 1,000.0 1 1

Hash (cost=10.25..10.25 rows=1,000 width=32) (actual time=0.349..0.349 rows=1 loops=1)

  • Output: fnarvoremovimentacao.cdtipomvprocesso
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=22
18. 0.345 0.345 ↑ 1,000.0 1 1

Function Scan on saj.fnarvoremovimentacao (cost=0.25..10.25 rows=1,000 width=32) (actual time=0.343..0.345 rows=1 loops=1)

  • Output: fnarvoremovimentacao.cdtipomvprocesso
  • Function Call: fnarvoremovimentacao('920246'::character varying)
  • Buffers: shared hit=22
Planning time : 0.518 ms
Execution time : 23.234 ms