explain.depesz.com

PostgreSQL's explain analyze made readable

Result: fxyW

Settings
# exclusive inclusive rows x rows loops node
1. 0.014 23.598 ↑ 176.0 1 1

Hash Join (cost=49.03..2,449.16 rows=176 width=14) (actual time=17.696..23.598 rows=1 loops=1)

  • Output: conjunto.cdprocesso
  • Hash Cond: ((conjunto.cdtipomvprocesso)::numeric = (fnarvoremovimentacao.cdtipomvprocesso)::numeric)
  • Buffers: shared hit=1356
2. 0.742 23.282 ↑ 8.8 4 1

Hash Join (cost=26.29..2,407.08 rows=35 width=18) (actual time=17.379..23.282 rows=4 loops=1)

  • Output: conjunto.cdprocesso, conjunto.cdtipomvprocesso
  • Inner Unique: true
  • Hash Cond: ((conjunto.cdassuntoprinc)::numeric = a.cdassunto)
  • Buffers: shared hit=1334
3. 2.106 20.134 ↓ 14.2 994 1

Hash Semi Join (cost=9.04..2,389.21 rows=70 width=22) (actual time=7.406..20.134 rows=994 loops=1)

  • Output: conjunto.cdprocesso, conjunto.cdtipomvprocesso, conjunto.cdassuntoprinc
  • Hash Cond: ((conjunto.cdlocal)::numeric = (((unnest('{23029}'::text[])))::numeric))
  • Buffers: shared hit=1252
4. 4.142 18.019 ↓ 15.2 2,131 1

Hash Semi Join (cost=4.52..2,383.45 rows=140 width=26) (actual time=7.346..18.019 rows=2,131 loops=1)

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

Seq Scan on saj.efmpconjunto conjunto (cost=0.00..2,376.44 rows=281 width=30) (actual time=2.973..13.863 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.014 ↑ 50.0 2 1

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

  • Output: (((unnest('{0801,0802}'::text[])))::numeric)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
7. 0.005 0.011 ↑ 50.0 2 1

Result (cost=0.00..2.27 rows=100 width=32) (actual time=0.006..0.011 rows=2 loops=1)

  • Output: ((unnest('{0801,0802}'::text[])))::numeric
8. 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[])
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.002 0.009 ↑ 100.0 1 1

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

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

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

  • Output: ((unnest('{23029}'::text[])))::numeric
12. 0.004 0.005 ↑ 100.0 1 1

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

  • Output: unnest('{23029}'::text[])
13. 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)

14. 0.003 2.406 ↑ 200.0 1 1

Hash (cost=14.75..14.75 rows=200 width=32) (actual time=2.405..2.406 rows=1 loops=1)

  • Output: a.cdassunto
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=82
15. 0.007 2.403 ↑ 200.0 1 1

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

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

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

  • Output: a.cdassunto
  • Function Call: fnarvoreassunto('12218'::character varying)
  • Buffers: shared hit=82
17. 0.005 0.302 ↑ 1,000.0 1 1

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

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

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

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