explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8Bpc

Settings
# exclusive inclusive rows x rows loops node
1. 0.013 13,902.164 ↑ 5.0 1 1

Nested Loop (cost=0.03..5,307.76 rows=5 width=128) (actual time=13,902.159..13,902.164 rows=1 loops=1)

  • Buffers: shared hit=1927711 read=12162
2. 0.031 0.031 ↑ 1.0 1 1

Index Scan using _reference22_pkey on _reference22 t13 (cost=0.03..0.84 rows=1 width=40) (actual time=0.028..0.031 rows=1 loops=1)

  • Index Cond: (t13._idrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea)
  • Buffers: shared hit=3
3. 7.245 13,902.120 ↑ 5.0 1 1

Aggregate (cost=0..5,306.81 rows=5 width=286) (actual time=13,902.12..13,902.12 rows=1 loops=1)

  • Filter: ((CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum(((t3._fld606 + t3._turnover620))) IS NULL) THEN '0'::numeric ELSE sum(((t3._fld606 + t3._turnover620))) END <> '0'::numeric) OR (CASE WHEN (sum((((t3._fld606 + t3._turnover620)) + (0.00::numeric(15,2)))) IS NULL) THEN '0'::numeric ELSE sum((((t3._fld606 + t3._turnover620)) + (0.00::numeric(15,2)))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum(((t3._fld605 + t3._turnover617))) IS NULL) THEN '0'::numeric ELSE sum(((t3._fld605 + t3._turnover617))) END <> '0'::numeric) OR (CASE WHEN (sum((((t3._fld605 + t3._turnover617)) + (0.00::numeric(15,2)))) IS NULL) THEN '0'::numeric ELSE sum((((t3._fld605 + t3._turnover617)) + (0.00::numeric(15,2)))) END <> '0'::numeric))
  • Buffers: shared hit=1927708 read=12162
4. 1.070 13,894.875 ↓ 553.8 2,769 1

Append (cost=0..5,306.67 rows=5 width=212) (actual time=0.462..13,894.875 rows=2,769 loops=1)

  • Buffers: shared hit=1927708 read=12162
5. 216.758 216.758 ↓ 239.0 239 1

Seq Scan on _accrgat2634 t3 (cost=0..5,299.66 rows=1 width=202) (actual time=0.461..216.758 rows=239 loops=1)

  • Filter: ((t3._value1_type = '\\010'::bytea) AND (t3._value1_rtref = '\\000\\000\\000\\026'::bytea) AND (t3._value1_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared hit=32 read=12023
6. 0.049 45.396 ↓ 152.0 152 1

Subquery Scan on *SELECT* 2 (cost=0.1..1.75 rows=1 width=178) (actual time=0.153..45.396 rows=152 loops=1)

  • Buffers: shared hit=10555 read=12
7. 4.380 45.347 ↓ 152.0 152 1

Nested Loop (cost=0.1..1.74 rows=1 width=158) (actual time=0.151..45.347 rows=152 loops=1)

  • Buffers: shared hit=10555 read=12
8. 0.386 0.386 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t5 (cost=0.04..0.86 rows=1 width=63) (actual time=0.069..0.386 rows=243 loops=1)

  • Index Cond: ((t5._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t5._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: (t5._active AND (t5._accountdtrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t5._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=60
9. 40.581 40.581 ↓ 105.0 105 243

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t6 (cost=0.06..0.87 rows=1 width=69) (actual time=0.006..0.167 rows=105 loops=243)

  • Index Cond: ((t6._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t6._period <= '2019-04-12 23:59:59'::timestamp without time zone) AND (t6._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t6._correspond = '0'::numeric))
  • Filter: ((t6._value_type = '\\010'::bytea) AND (t6._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t6._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared hit=10495 read=12
10. 0.010 40.988 ↓ 21.0 21 1

Subquery Scan on *SELECT* 3 (cost=0.1..1.75 rows=1 width=218) (actual time=0.265..40.988 rows=21 loops=1)

  • Buffers: shared hit=5094
11. 0.894 40.978 ↓ 21.0 21 1

Nested Loop (cost=0.1..1.74 rows=1 width=198) (actual time=0.262..40.978 rows=21 loops=1)

  • Buffers: shared hit=5094
12. 0.232 0.232 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t7 (cost=0.04..0.86 rows=1 width=63) (actual time=0.026..0.232 rows=243 loops=1)

  • Index Cond: ((t7._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t7._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: (t7._active AND (t7._accountctrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t7._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=60
13. 39.852 39.852 ↓ 20.0 20 243

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t8 (cost=0.06..0.87 rows=1 width=69) (actual time=0.006..0.164 rows=20 loops=243)

  • Index Cond: ((t8._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t8._period <= '2019-04-12 23:59:59'::timestamp without time zone) AND (t8._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t8._correspond = '1'::numeric))
  • Filter: ((t8._value_type = '\\010'::bytea) AND (t8._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t8._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared hit=5034
14. 0.878 7,245.144 ↓ 1,887.0 1,887 1

Subquery Scan on *SELECT* 4 (cost=0.1..1.75 rows=1 width=230) (actual time=0.081..7,245.144 rows=1,887 loops=1)

  • Buffers: shared hit=1134377 read=127
15. 690.228 7,244.266 ↓ 1,887.0 1,887 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=0.08..7,244.266 rows=1,887 loops=1)

  • Buffers: shared hit=1134377 read=127
16. 6.256 6.256 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t9 (cost=0.04..0.86 rows=1 width=63) (actual time=0.031..6.256 rows=3,526 loops=1)

  • Index Cond: ((t9._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t9._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: (t9._active AND (t9._accountdtrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t9._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=624
17. 6,547.782 6,547.782 ↓ 1,382.0 1,382 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t10 (cost=0.06..0.87 rows=1 width=69) (actual time=0.016..1.857 rows=1,382 loops=3,526)

  • Index Cond: ((t10._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t10._period < '2019-05-01 00:00:00'::timestamp without time zone) AND (t10._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t10._correspond = '0'::numeric))
  • Filter: ((t10._value_type = '\\010'::bytea) AND (t10._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t10._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared hit=1133753 read=127
18. 0.210 6,345.519 ↓ 470.0 470 1

Subquery Scan on *SELECT* 5 (cost=0.1..1.75 rows=1 width=230) (actual time=11.766..6,345.519 rows=470 loops=1)

  • Buffers: shared hit=777650
19. 192.864 6,345.309 ↓ 470.0 470 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=11.764..6,345.309 rows=470 loops=1)

  • Buffers: shared hit=777650
20. 6.627 6.627 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t11 (cost=0.04..0.86 rows=1 width=63) (actual time=0.052..6.627 rows=3,526 loops=1)

  • Index Cond: ((t11._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t11._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: (t11._active AND (t11._accountctrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t11._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=624
21. 6,145.818 6,145.818 ↓ 439.0 439 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t12 (cost=0.06..0.87 rows=1 width=69) (actual time=0.015..1.743 rows=439 loops=3,526)

  • Index Cond: ((t12._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t12._period < '2019-05-01 00:00:00'::timestamp without time zone) AND (t12._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t12._correspond = '1'::numeric))
  • Filter: ((t12._value_type = '\\010'::bytea) AND (t12._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t12._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared hit=777026