explain.depesz.com

PostgreSQL's explain analyze made readable

Result: bE8R

Settings
# exclusive inclusive rows x rows loops node
1. 3.150 69.010 ↑ 12.7 299 1

Hash Full Join (cost=2,300.60..3,029.52 rows=3,791 width=136) (actual time=58.760..69.010 rows=299 loops=1)

  • Hash Cond: (block_seek_pos.bidx = block_seek_pos_1.bidx)
  • Filter: ((block_seek_pos.bidx IS NULL) OR (block_seek_pos_1.bidx IS NULL) OR ((block_seek_pos.block_chksum)::text <> (block_seek_pos_1.block_chksum)::text))
  • Rows Removed by Filter: 6,394
2. 3.906 23.501 ↓ 1.8 6,692 1

Hash Join (cost=832.08..1,491.60 rows=3,792 width=101) (actual time=16.378..23.501 rows=6,692 loops=1)

  • Hash Cond: (block_seek_pos.sbid = "ANY_subquery".max)
3. 3.297 3.297 ↑ 1.1 7,169 1

Seq Scan on block_seek_pos (cost=0.00..597.42 rows=7,585 width=101) (actual time=0.050..3.297 rows=7,169 loops=1)

  • Filter: ((fguid)::text = 'ac15c785776ab44bd58a60f99a240515'::text)
  • Rows Removed by Filter: 6,785
4. 1.171 16.298 ↓ 33.5 6,692 1

Hash (cost=829.58..829.58 rows=200 width=8) (actual time=16.298..16.298 rows=6,692 loops=1)

  • Buckets: 8,192 (originally 1024) Batches: 1 (originally 1) Memory Usage: 326kB
5. 3.555 15.127 ↓ 33.5 6,692 1

HashAggregate (cost=827.58..829.58 rows=200 width=8) (actual time=13.907..15.127 rows=6,692 loops=1)

  • Group Key: "ANY_subquery".max
6. 0.622 11.572 ↓ 1.2 6,692 1

Subquery Scan on ANY_subquery (cost=704.19..813.87 rows=5,484 width=8) (actual time=9.186..11.572 rows=6,692 loops=1)

7. 4.176 10.950 ↓ 1.2 6,692 1

HashAggregate (cost=704.19..759.03 rows=5,484 width=16) (actual time=9.184..10.950 rows=6,692 loops=1)

  • Group Key: block_seek_pos_2.bidx
8. 6.774 6.774 ↑ 1.1 6,872 1

Seq Scan on block_seek_pos block_seek_pos_2 (cost=0.00..667.20 rows=7,399 width=16) (actual time=0.013..6.774 rows=6,872 loops=1)

  • Filter: ((schid <= 3) AND (sbid > 0) AND ((fguid)::text = 'ac15c785776ab44bd58a60f99a240515'::text))
  • Rows Removed by Filter: 7,082
9. 3.361 42.359 ↓ 2.1 6,692 1

Hash (cost=1,428.85..1,428.85 rows=3,174 width=101) (actual time=42.359..42.359 rows=6,692 loops=1)

  • Buckets: 8,192 (originally 4096) Batches: 1 (originally 1) Memory Usage: 960kB
10. 4.689 38.998 ↓ 2.1 6,692 1

Hash Join (cost=779.45..1,428.85 rows=3,174 width=101) (actual time=31.914..38.998 rows=6,692 loops=1)

  • Hash Cond: (block_seek_pos_1.sbid = "ANY_subquery_1".max)
11. 4.442 4.442 ↓ 1.1 6,765 1

Seq Scan on block_seek_pos block_seek_pos_1 (cost=0.00..597.42 rows=6,347 width=101) (actual time=2.025..4.442 rows=6,765 loops=1)

  • Filter: ((fguid)::text = '5303ee30dacdde734dec68ede9346d8f'::text)
  • Rows Removed by Filter: 7,189
12. 1.049 29.867 ↓ 33.5 6,692 1

Hash (cost=776.95..776.95 rows=200 width=8) (actual time=29.867..29.867 rows=6,692 loops=1)

  • Buckets: 8,192 (originally 1024) Batches: 1 (originally 1) Memory Usage: 326kB
13. 2.858 28.818 ↓ 33.5 6,692 1

HashAggregate (cost=774.95..776.95 rows=200 width=8) (actual time=27.848..28.818 rows=6,692 loops=1)

  • Group Key: "ANY_subquery_1".max
14. 0.511 25.960 ↓ 1.4 6,692 1

Subquery Scan on ANY_subquery_1 (cost=663.98..762.62 rows=4,932 width=8) (actual time=6.933..25.960 rows=6,692 loops=1)

15. 21.143 25.449 ↓ 1.4 6,692 1

HashAggregate (cost=663.98..713.30 rows=4,932 width=16) (actual time=6.931..25.449 rows=6,692 loops=1)

  • Group Key: block_seek_pos_3.bidx
16. 4.306 4.306 ↓ 1.1 6,763 1

Seq Scan on block_seek_pos block_seek_pos_3 (cost=0.00..632.31 rows=6,334 width=16) (actual time=1.991..4.306 rows=6,763 loops=1)

  • Filter: ((sbid > 0) AND ((fguid)::text = '5303ee30dacdde734dec68ede9346d8f'::text))
  • Rows Removed by Filter: 7,191
Planning time : 0.989 ms
Execution time : 70.053 ms