explain.depesz.com

PostgreSQL's explain analyze made readable

Result: bLMf

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 47,800.701 ↓ 1.4 7 1

Limit (cost=4,421.38..4,968.78 rows=5 width=660) (actual time=47,800.438..47,800.701 rows=7 loops=1)

  • Buffers: shared hit=11296636
2. 0.067 47,800.701 ↓ 1.4 7 1

WindowAgg (cost=4,421.38..4,968.78 rows=5 width=660) (actual time=47,800.438..47,800.701 rows=7 loops=1)

  • Buffers: shared hit=11296636
3. 0.047 47,800.284 ↓ 1.4 7 1

Sort (cost=4,421.38..4,421.39 rows=5 width=502) (actual time=47,800.281..47,800.284 rows=7 loops=1)

  • Sort Key: a.edassnbr
  • Sort Method: quicksort Memory: 30kB
  • Buffers: shared hit=11296543
4. 0.028 47,800.237 ↓ 1.4 7 1

Nested Loop Left Join (cost=1,428.44..4,421.32 rows=5 width=502) (actual time=15,502.008..47,800.237 rows=7 loops=1)

  • Buffers: shared hit=11296543
5. 0.011 47,800.181 ↓ 1.4 7 1

Nested Loop (cost=1,428.17..4,379.80 rows=5 width=494) (actual time=15,501.997..47,800.181 rows=7 loops=1)

  • Buffers: shared hit=11296531
6. 0.003 0.154 ↑ 1.0 1 1

Nested Loop Left Join (cost=2.10..47.34 rows=1 width=245) (actual time=0.142..0.154 rows=1 loops=1)

  • Join Filter: (((a.assnbri)::text = (abom.assnbri)::text) AND ((a.reg_name)::text = (abom.reg_name)::text))
  • Buffers: shared hit=22
7. 0.007 0.145 ↑ 1.0 1 1

Nested Loop Left Join (cost=2.10..46.29 rows=1 width=230) (actual time=0.134..0.145 rows=1 loops=1)

  • Join Filter: (((a.assnbri)::text = (rpt.assnbri)::text) AND ((a.reg_name)::text = (rpt.reg_name)::text))
  • Buffers: shared hit=21
8. 0.007 0.121 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.69..37.84 rows=1 width=211) (actual time=0.112..0.121 rows=1 loops=1)

  • Join Filter: (((a.reg_name)::text = (au.reg_name)::text) AND ((a.assnbri)::text = (au.assnbri)::text))
  • Buffers: shared hit=17
9. 0.007 0.087 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.27..33.39 rows=1 width=204) (actual time=0.080..0.087 rows=1 loops=1)

  • Join Filter: ((a.asset_type)::text = (f1a_asset_type_sc0.code_id)::text)
  • Buffers: shared hit=13
10. 0.010 0.070 ↑ 1.0 1 1

Nested Loop Left Join (cost=0.98..25.07 rows=1 width=187) (actual time=0.065..0.070 rows=1 loops=1)

  • Buffers: shared hit=10
11. 0.007 0.048 ↑ 1.0 1 1

Nested Loop Left Join (cost=0.70..16.75 rows=1 width=170) (actual time=0.045..0.048 rows=1 loops=1)

  • Buffers: shared hit=7
12. 0.027 0.027 ↑ 1.0 1 1

Index Scan using f1fara_idx1 on f1asr_reg_asset a (cost=0.41..8.44 rows=1 width=153) (actual time=0.025..0.027 rows=1 loops=1)

  • Index Cond: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Filter: ((asset_type)::text = 'S'::text)
  • Buffers: shared hit=4
13. 0.014 0.014 ↑ 1.0 1 1

Index Scan using f1fstc_idx1 on f1stc_code f1a_oper_asset_status_sc2 (cost=0.29..8.30 rows=1 width=21) (actual time=0.013..0.014 rows=1 loops=1)

  • Index Cond: (((code_type)::text = 'F1A_OPER_ASSET_STATUS'::text) AND ((a.operating_asset_status)::text = (code_id)::text))
  • Buffers: shared hit=3
14. 0.012 0.012 ↑ 1.0 1 1

Index Scan using f1fstc_idx1 on f1stc_code f1a_asset_status_sc1 (cost=0.29..8.30 rows=1 width=21) (actual time=0.012..0.012 rows=1 loops=1)

  • Index Cond: (((code_type)::text = 'F1A_ASSET_STATUS'::text) AND ((a.asset_status)::text = (code_id)::text))
  • Buffers: shared hit=3
15. 0.010 0.010 ↑ 1.0 1 1

Index Scan using f1fstc_idx1 on f1stc_code f1a_asset_type_sc0 (cost=0.29..8.30 rows=1 width=21) (actual time=0.009..0.010 rows=1 loops=1)

  • Index Cond: (((code_type)::text = 'F1A_ASSET_TYPE'::text) AND ((code_id)::text = 'S'::text))
  • Buffers: shared hit=3
16. 0.027 0.027 ↑ 1.0 1 1

Index Only Scan using f1farauf_idx1 on f1asr_reg_asset_uf au (cost=0.41..4.43 rows=1 width=15) (actual time=0.026..0.027 rows=1 loops=1)

  • Index Cond: ((reg_name = 'ASSET'::text) AND (assnbri = '0000010'::text))
  • Heap Fetches: 0
  • Buffers: shared hit=4
17. 0.017 0.017 ↑ 1.0 1 1

Index Scan using amrpt_a_idx1 on amrpt_asset rpt (cost=0.41..8.43 rows=1 width=35) (actual time=0.016..0.017 rows=1 loops=1)

  • Index Cond: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Buffers: shared hit=4
18. 0.006 0.006 ↓ 0.0 0 1

Seq Scan on f1asr_reg_asset_bom abom (cost=0.00..1.03 rows=1 width=29) (actual time=0.006..0.006 rows=0 loops=1)

  • Filter: (((assnbri)::text = '0000010'::text) AND (seqnbr = 1) AND ((reg_name)::text = 'ASSET'::text))
  • Rows Removed by Filter: 2
  • Buffers: shared hit=1
19. 0.050 47,800.016 ↓ 1.4 7 1

Nested Loop Left Join (cost=1,426.07..4,332.41 rows=5 width=249) (actual time=15,501.853..47,800.016 rows=7 loops=1)

  • Join Filter: (((msal_2.reg_name)::text = (msal.reg_name)::text) AND ((msal_2.assnbri)::text = (msal.assnbri)::text) AND ((msal_2.mnt_shd_code)::text = (msal.mnt_shd_code)::text))
  • Rows Removed by Join Filter: 23
  • Buffers: shared hit=11296509
20. 0.022 7,721.858 ↓ 1.4 7 1

Merge Left Join (cost=715.10..777.32 rows=5 width=241) (actual time=7,721.668..7,721.858 rows=7 loops=1)

  • Merge Cond: ((msal.mnt_shd_code)::text = (msal_1.mnt_shd_code)::text)
  • Join Filter: (((msal_1.reg_name)::text = (msal.reg_name)::text) AND ((msal_1.assnbri)::text = (msal.assnbri)::text))
  • Buffers: shared hit=1412117
21. 0.022 0.281 ↓ 1.4 7 1

Nested Loop Left Join (cost=3.99..58.11 rows=5 width=217) (actual time=0.111..0.281 rows=7 loops=1)

  • Join Filter: ((msd.mnt_shd_basis_optn)::text = (aso_mnt_shd_basis_sc7.code_id)::text)
  • Rows Removed by Join Filter: 7
  • Buffers: shared hit=22
22. 0.024 0.238 ↓ 1.4 7 1

Nested Loop Left Join (cost=3.70..43.45 rows=5 width=200) (actual time=0.094..0.238 rows=7 loops=1)

  • Join Filter: ((msd.mnt_shd_type)::text = (aso_mnt_shd_type_sc6.code_id)::text)
  • Rows Removed by Join Filter: 21
  • Buffers: shared hit=19
23. 0.018 0.186 ↓ 1.4 7 1

Nested Loop Left Join (cost=3.42..28.79 rows=5 width=183) (actual time=0.078..0.186 rows=7 loops=1)

  • Join Filter: ((msal.mnt_shd_asset_link_status)::text = (aso_mnt_shd_asset_link44f21c76.code_id)::text)
  • Buffers: shared hit=14
24. 0.047 0.147 ↓ 1.4 7 1

Merge Join (cost=3.13..20.41 rows=5 width=166) (actual time=0.064..0.147 rows=7 loops=1)

  • Merge Cond: ((msal.mnt_shd_code)::text = (msd.mnt_shd_code)::text)
  • Buffers: shared hit=11
25. 0.046 0.046 ↓ 1.2 7 1

Index Scan using f1asomsal_idx1 on f1aso_mnt_shd_asset_link msal (cost=0.28..17.40 rows=6 width=131) (actual time=0.014..0.046 rows=7 loops=1)

  • Index Cond: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Filter: ((mnt_shd_asset_link_status)::text = 'A'::text)
  • Buffers: shared hit=9
26. 0.037 0.054 ↑ 1.4 16 1

Sort (cost=2.85..2.91 rows=22 width=35) (actual time=0.046..0.054 rows=16 loops=1)

  • Sort Key: msd.mnt_shd_code
  • Sort Method: quicksort Memory: 26kB
  • Buffers: shared hit=2
27. 0.017 0.017 ↑ 1.2 18 1

Seq Scan on f1aso_mnt_shd_ctl msd (cost=0.00..2.36 rows=22 width=35) (actual time=0.005..0.017 rows=18 loops=1)

  • Filter: ((reg_name)::text = 'ASSET'::text)
  • Rows Removed by Filter: 6
  • Buffers: shared hit=2
28. 0.009 0.021 ↑ 1.0 1 7

Materialize (cost=0.29..8.31 rows=1 width=21) (actual time=0.002..0.003 rows=1 loops=7)

  • Buffers: shared hit=3
29. 0.012 0.012 ↑ 1.0 1 1

Index Scan using f1fstc_idx1 on f1stc_code aso_mnt_shd_asset_link44f21c76 (cost=0.29..8.30 rows=1 width=21) (actual time=0.010..0.012 rows=1 loops=1)

  • Index Cond: (((code_type)::text = 'ASO_MNT_SHD_ASSET_LINK_STATUS'::text) AND ((code_id)::text = 'A'::text))
  • Buffers: shared hit=3
30. 0.014 0.028 ↑ 1.0 4 7

Materialize (cost=0.29..14.37 rows=4 width=21) (actual time=0.002..0.004 rows=4 loops=7)

  • Buffers: shared hit=5
31. 0.014 0.014 ↑ 1.0 4 1

Index Scan using f1fstc_idx1 on f1stc_code aso_mnt_shd_type_sc6 (cost=0.29..14.35 rows=4 width=21) (actual time=0.009..0.014 rows=4 loops=1)

  • Index Cond: ((code_type)::text = 'ASO_MNT_SHD_TYPE'::text)
  • Buffers: shared hit=5
32. 0.008 0.021 ↑ 2.0 2 7

Materialize (cost=0.29..14.37 rows=4 width=21) (actual time=0.002..0.003 rows=2 loops=7)

  • Buffers: shared hit=3
33. 0.013 0.013 ↑ 2.0 2 1

Index Scan using f1fstc_idx1 on f1stc_code aso_mnt_shd_basis_sc7 (cost=0.29..14.35 rows=4 width=21) (actual time=0.010..0.013 rows=2 loops=1)

  • Index Cond: ((code_type)::text = 'ASO_MNT_SHD_BASIS'::text)
  • Buffers: shared hit=3
34. 0.002 7,721.555 ↑ 1.0 1 1

Materialize (cost=711.11..719.18 rows=1 width=45) (actual time=7,721.552..7,721.555 rows=1 loops=1)

  • Buffers: shared hit=1412095
35. 0.004 7,721.553 ↑ 1.0 1 1

Nested Loop Left Join (cost=711.11..719.18 rows=1 width=45) (actual time=7,721.551..7,721.553 rows=1 loops=1)

  • Buffers: shared hit=1412095
36. 0.003 7,721.537 ↑ 1.0 1 1

GroupAggregate (cost=710.84..710.86 rows=1 width=29) (actual time=7,721.537..7,721.537 rows=1 loops=1)

  • Group Key: msal_1.reg_name, msal_1.assnbri, msal_1.mnt_shd_code
  • Buffers: shared hit=1412092
37. 0.014 7,721.534 ↑ 1.0 1 1

Sort (cost=710.84..710.84 rows=1 width=29) (actual time=7,721.533..7,721.534 rows=1 loops=1)

  • Sort Key: msal_1.mnt_shd_code
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared hit=1412092
38. 2.523 7,721.520 ↑ 1.0 1 1

Nested Loop (cost=82.11..710.83 rows=1 width=29) (actual time=560.704..7,721.520 rows=1 loops=1)

  • Join Filter: ((SubPlan 6) = tc.est_start_datei)
  • Rows Removed by Join Filter: 451
  • Buffers: shared hit=1412092
39. 1.320 6.973 ↓ 21.5 452 1

Hash Join (cost=81.84..132.31 rows=21 width=39) (actual time=4.658..6.973 rows=452 loops=1)

  • Hash Cond: (ta.mnt_hist_unique_id = mh.unique_id)
  • Buffers: shared hit=67
40. 1.153 1.153 ↓ 1.0 756 1

Seq Scan on f1wrk_task_ctl_ass ta (cost=0.00..47.51 rows=735 width=38) (actual time=0.015..1.153 rows=756 loops=1)

  • Filter: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Rows Removed by Filter: 485
  • Buffers: shared hit=29
41. 0.172 4.500 ↓ 41.4 455 1

Hash (cost=81.70..81.70 rows=11 width=45) (actual time=4.499..4.500 rows=455 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 47kB
  • Buffers: shared hit=35
42. 1.047 4.328 ↓ 41.4 455 1

Nested Loop (cost=2.91..81.70 rows=11 width=45) (actual time=0.096..4.328 rows=455 loops=1)

  • Join Filter: ((CASE WHEN ((msc.mnt_shd_type)::text = 'N'::text) THEN mh.aso_nest_mnt_shd_code ELSE mh.aso_mnt_shd_code END)::text = (msc.mnt_shd_code)::text)
  • Rows Removed by Join Filter: 2632
  • Buffers: shared hit=35
43. 0.194 0.194 ↓ 1.0 441 1

Seq Scan on f1asr_reg_asset_mh mh (cost=0.00..37.74 rows=421 width=35) (actual time=0.028..0.194 rows=441 loops=1)

  • Filter: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Rows Removed by Filter: 91
  • Buffers: shared hit=30
44. 3.029 3.087 ↓ 1.4 7 441

Materialize (cost=2.91..7.13 rows=5 width=32) (actual time=0.000..0.007 rows=7 loops=441)

  • Buffers: shared hit=5
45. 0.011 0.058 ↓ 1.4 7 1

Hash Join (cost=2.91..7.11 rows=5 width=32) (actual time=0.053..0.058 rows=7 loops=1)

  • Hash Cond: ((msal_1.mnt_shd_code)::text = (msc.mnt_shd_code)::text)
  • Buffers: shared hit=5
46. 0.022 0.022 ↓ 1.2 7 1

Index Only Scan using f1asomsal_idx1 on f1aso_mnt_shd_asset_link msal_1 (cost=0.28..4.40 rows=6 width=21) (actual time=0.018..0.022 rows=7 loops=1)

  • Index Cond: ((reg_name = 'ASSET'::text) AND (assnbri = '0000010'::text))
  • Heap Fetches: 0
  • Buffers: shared hit=3
47. 0.007 0.025 ↑ 1.2 18 1

Hash (cost=2.36..2.36 rows=22 width=17) (actual time=0.025..0.025 rows=18 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=2
48. 0.018 0.018 ↑ 1.2 18 1

Seq Scan on f1aso_mnt_shd_ctl msc (cost=0.00..2.36 rows=22 width=17) (actual time=0.008..0.018 rows=18 loops=1)

  • Filter: ((reg_name)::text = 'ASSET'::text)
  • Rows Removed by Filter: 6
  • Buffers: shared hit=2
49. 6.780 6.780 ↑ 1.0 1 452

Index Scan using f1wtc_idx1 on f1wrk_task_ctl tc (cost=0.28..2.60 rows=1 width=33) (actual time=0.014..0.015 rows=1 loops=452)

  • Index Cond: (((work_sys_name)::text = (ta.work_sys_name)::text) AND ((task_nbri)::text = (ta.task_nbri)::text))
  • Buffers: shared hit=1364
50.          

SubPlan (for Nested Loop)

51. 0.904 7,705.244 ↓ 0.0 0 452

Limit (cost=24.93..24.94 rows=1 width=8) (actual time=17.047..17.047 rows=0 loops=452)

  • Buffers: shared hit=1410661
52. 10.396 7,704.340 ↓ 0.0 0 452

Sort (cost=24.93..24.94 rows=1 width=8) (actual time=17.045..17.045 rows=0 loops=452)

  • Sort Key: tc2.est_start_datei DESC
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared hit=1410661
53. 179.422 7,693.944 ↓ 0.0 0 452

Nested Loop (cost=0.83..24.92 rows=1 width=8) (actual time=16.989..17.022 rows=0 loops=452)

  • Buffers: shared hit=1410658
54. 629.636 4,012.856 ↓ 369.0 369 452

Nested Loop (cost=0.55..16.61 rows=1 width=16) (actual time=0.475..8.878 rows=369 loops=452)

  • Buffers: shared hit=907164
55. 307.812 307.812 ↓ 756.0 756 452

Index Scan using f1wtcass_idx2 on f1wrk_task_ctl_ass ta2 (cost=0.28..8.30 rows=1 width=38) (actual time=0.056..0.681 rows=756 loops=452)

  • Index Cond: (((reg_name)::text = (msal_1.reg_name)::text) AND ((assnbri)::text = (msal_1.assnbri)::text))
  • Buffers: shared hit=21244
56. 3,075.408 3,075.408 ↓ 0.0 0 341,712

Index Scan using f1faramh_idx1 on f1asr_reg_asset_mh mh2 (cost=0.28..8.30 rows=1 width=22) (actual time=0.009..0.009 rows=0 loops=341,712)

  • Index Cond: (((reg_name)::text = (msal_1.reg_name)::text) AND ((assnbri)::text = (msal_1.assnbri)::text) AND (unique_id = ta2.mnt_hist_unique_id))
  • Filter: ((msal_1.mnt_shd_code)::text = (CASE WHEN ((msc.mnt_shd_type)::text = 'N'::text) THEN aso_nest_mnt_shd_code ELSE aso_mnt_shd_code END)::text)
  • Rows Removed by Filter: 0
  • Buffers: shared hit=885920
57. 3,501.666 3,501.666 ↓ 0.0 0 166,746

Index Scan using f1wtc_idx1 on f1wrk_task_ctl tc2 (cost=0.28..8.30 rows=1 width=25) (actual time=0.021..0.021 rows=0 loops=166,746)

  • Index Cond: (((work_sys_name)::text = (ta2.work_sys_name)::text) AND ((task_nbri)::text = (ta2.task_nbri)::text))
  • Filter: ((task_stage)::text = ANY ('{W,C,R}'::text[]))
  • Rows Removed by Filter: 1
  • Buffers: shared hit=503494
58. 0.012 0.012 ↑ 1.0 1 1

Index Scan using f1wtc_idx5 on f1wrk_task_ctl prev_wo (cost=0.28..8.29 rows=1 width=32) (actual time=0.011..0.012 rows=1 loops=1)

  • Index Cond: (task_rid = (max(tc.task_rid)))
  • Buffers: shared hit=3
59. 0.056 40,078.108 ↓ 4.0 4 7

GroupAggregate (cost=710.97..710.99 rows=1 width=29) (actual time=5,725.442..5,725.444 rows=4 loops=7)

  • Group Key: msal_2.reg_name, msal_2.assnbri, msal_2.mnt_shd_code
  • Buffers: shared hit=9884392
60. 0.161 40,078.052 ↓ 4.0 4 7

Sort (cost=710.97..710.97 rows=1 width=29) (actual time=5,725.436..5,725.436 rows=4 loops=7)

  • Sort Key: msal_2.mnt_shd_code
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared hit=9884392
61. 35.273 40,077.891 ↓ 4.0 4 7

Nested Loop (cost=82.11..710.96 rows=1 width=29) (actual time=5.402..5,725.413 rows=4 loops=7)

  • Join Filter: ((SubPlan 7) = tc_1.est_start_datei)
  • Rows Removed by Join Filter: 448
  • Buffers: shared hit=9884392
62. 12.565 27.510 ↓ 21.5 452 7

Hash Join (cost=81.84..132.31 rows=21 width=39) (actual time=0.680..3.930 rows=452 loops=7)

  • Hash Cond: (ta_1.mnt_hist_unique_id = mh_1.unique_id)
  • Buffers: shared hit=238
63. 11.123 11.123 ↓ 1.0 756 7

Seq Scan on f1wrk_task_ctl_ass ta_1 (cost=0.00..47.51 rows=735 width=38) (actual time=0.013..1.589 rows=756 loops=7)

  • Filter: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Rows Removed by Filter: 485
  • Buffers: shared hit=203
64. 0.887 3.822 ↓ 41.4 455 1

Hash (cost=81.70..81.70 rows=11 width=45) (actual time=3.822..3.822 rows=455 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 47kB
  • Buffers: shared hit=35
65. 1.522 2.935 ↓ 41.4 455 1

Nested Loop (cost=2.91..81.70 rows=11 width=45) (actual time=0.111..2.935 rows=455 loops=1)

  • Join Filter: ((CASE WHEN ((msc_1.mnt_shd_type)::text = 'N'::text) THEN mh_1.aso_nest_mnt_shd_code ELSE mh_1.aso_mnt_shd_code END)::text = (msc_1.mnt_shd_code)::text)
  • Rows Removed by Join Filter: 2632
  • Buffers: shared hit=35
66. 0.972 0.972 ↓ 1.0 441 1

Seq Scan on f1asr_reg_asset_mh mh_1 (cost=0.00..37.74 rows=421 width=35) (actual time=0.030..0.972 rows=441 loops=1)

  • Filter: (((reg_name)::text = 'ASSET'::text) AND ((assnbri)::text = '0000010'::text))
  • Rows Removed by Filter: 91
  • Buffers: shared hit=30
67. 0.380 0.441 ↓ 1.4 7 441

Materialize (cost=2.91..7.13 rows=5 width=32) (actual time=0.000..0.001 rows=7 loops=441)

  • Buffers: shared hit=5
68. 0.018 0.061 ↓ 1.4 7 1

Hash Join (cost=2.91..7.11 rows=5 width=32) (actual time=0.055..0.061 rows=7 loops=1)

  • Hash Cond: ((msal_2.mnt_shd_code)::text = (msc_1.mnt_shd_code)::text)
  • Buffers: shared hit=5
69. 0.016 0.016 ↓ 1.2 7 1

Index Only Scan using f1asomsal_idx1 on f1aso_mnt_shd_asset_link msal_2 (cost=0.28..4.40 rows=6 width=21) (actual time=0.014..0.016 rows=7 loops=1)

  • Index Cond: ((reg_name = 'ASSET'::text) AND (assnbri = '0000010'::text))
  • Heap Fetches: 0
  • Buffers: shared hit=3
70. 0.010 0.027 ↑ 1.2 18 1

Hash (cost=2.36..2.36 rows=22 width=17) (actual time=0.027..0.027 rows=18 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=2
71. 0.017 0.017 ↑ 1.2 18 1

Seq Scan on f1aso_mnt_shd_ctl msc_1 (cost=0.00..2.36 rows=22 width=17) (actual time=0.007..0.017 rows=18 loops=1)

  • Filter: ((reg_name)::text = 'ASSET'::text)
  • Rows Removed by Filter: 6
  • Buffers: shared hit=2
72. 31.640 31.640 ↑ 1.0 1 3,164

Index Scan using f1wtc_idx1 on f1wrk_task_ctl tc_1 (cost=0.28..2.60 rows=1 width=33) (actual time=0.010..0.010 rows=1 loops=3,164)

  • Index Cond: (((work_sys_name)::text = (ta_1.work_sys_name)::text) AND ((task_nbri)::text = (ta_1.task_nbri)::text))
  • Buffers: shared hit=9548
73.          

SubPlan (for Nested Loop)

74. 15.820 39,983.468 ↑ 1.0 1 3,164

Limit (cost=24.94..24.94 rows=1 width=8) (actual time=12.635..12.637 rows=1 loops=3,164)

  • Buffers: shared hit=9874606
75. 417.648 39,967.648 ↑ 1.0 1 3,164

Sort (cost=24.94..24.94 rows=1 width=8) (actual time=12.631..12.632 rows=1 loops=3,164)

  • Sort Key: tc2_1.est_start_datei
  • Sort Method: top-N heapsort Memory: 25kB
  • Buffers: shared hit=9874606
76. 767.228 39,550.000 ↓ 347.0 347 3,164

Nested Loop (cost=0.83..24.93 rows=1 width=8) (actual time=0.536..12.500 rows=347 loops=3,164)

  • Buffers: shared hit=9874606
77. 1,819.300 20,107.220 ↓ 369.0 369 3,164

Nested Loop (cost=0.55..16.61 rows=1 width=16) (actual time=0.463..6.355 rows=369 loops=3,164)

  • Buffers: shared hit=6350148
78. 1,544.032 1,544.032 ↓ 756.0 756 3,164

Index Scan using f1wtcass_idx2 on f1wrk_task_ctl_ass ta_2 (cost=0.28..8.30 rows=1 width=38) (actual time=0.050..0.488 rows=756 loops=3,164)

  • Index Cond: (((reg_name)::text = (msal_2.reg_name)::text) AND ((assnbri)::text = (msal_2.assnbri)::text))
  • Buffers: shared hit=148708
79. 16,743.888 16,743.888 ↓ 0.0 0 2,391,984

Index Scan using f1faramh_idx1 on f1asr_reg_asset_mh mh2_1 (cost=0.28..8.30 rows=1 width=22) (actual time=0.006..0.007 rows=0 loops=2,391,984)

  • Index Cond: (((reg_name)::text = (msal_2.reg_name)::text) AND ((assnbri)::text = (msal_2.assnbri)::text) AND (unique_id = ta_2.mnt_hist_unique_id))
  • Filter: ((msal_2.mnt_shd_code)::text = (CASE WHEN ((msc_1.mnt_shd_type)::text = 'N'::text) THEN aso_nest_mnt_shd_code ELSE aso_mnt_shd_code END)::text)
  • Rows Removed by Filter: 0
  • Buffers: shared hit=6201440
80. 18,675.552 18,675.552 ↑ 1.0 1 1,167,222

Index Scan using f1wtc_idx1 on f1wrk_task_ctl tc2_1 (cost=0.28..8.31 rows=1 width=25) (actual time=0.015..0.016 rows=1 loops=1,167,222)

  • Index Cond: (((work_sys_name)::text = (ta_2.work_sys_name)::text) AND ((task_nbri)::text = (ta_2.task_nbri)::text))
  • Filter: (((task_stage)::text = ANY ('{A,D}'::text[])) AND (est_start_datei > COALESCE(($20)::timestamp with time zone, to_timestamp('1900-01-01 00:00:00'::text, 'YYYY-MM-DD hh24:mi:ss'::text))))
  • Rows Removed by Filter: 0
  • Buffers: shared hit=3524458
81. 0.028 0.028 ↑ 1.0 1 7

Index Scan using f1wtc_idx5 on f1wrk_task_ctl next_wo (cost=0.28..8.29 rows=1 width=24) (actual time=0.003..0.004 rows=1 loops=7)

  • Index Cond: (task_rid = (min(tc_1.task_rid)))
  • Buffers: shared hit=12
82.          

SubPlan (for WindowAgg)

83. 0.063 0.063 ↑ 1.0 1 7

Seq Scan on f1aso_mnt_shd_ctl msc1 (cost=0.00..2.44 rows=1 width=2) (actual time=0.005..0.009 rows=1 loops=7)

  • Filter: (((reg_name)::text = (msal.reg_name)::text) AND ((mnt_shd_code)::text = (msal.mnt_shd_code)::text))
  • Rows Removed by Filter: 23
  • Buffers: shared hit=14
84. 0.003 0.020 ↑ 1.0 1 1

Aggregate (cost=45.69..45.70 rows=1 width=8) (actual time=0.020..0.020 rows=1 loops=1)

  • Buffers: shared hit=3
85. 0.001 0.017 ↓ 0.0 0 1

Nested Loop Anti Join (cost=8.73..45.69 rows=1 width=0) (actual time=0.017..0.017 rows=0 loops=1)

  • Join Filter: (((mh_2.reg_name)::text = (al.reg_name)::text) AND ((mh_2.assnbri)::text = (al.assnbri)::text) AND ((mh_2.aso_mnt_shd_code)::text = (n.sub_mnt_shd_code)::text))
  • Buffers: shared hit=3
86. 0.004 0.016 ↓ 0.0 0 1

Nested Loop (cost=0.28..9.39 rows=1 width=20) (actual time=0.016..0.016 rows=0 loops=1)

  • Buffers: shared hit=3
87. 0.012 0.012 ↓ 0.0 0 1

Index Scan using f1asomsal_idx1 on f1aso_mnt_shd_asset_link al (cost=0.28..8.30 rows=1 width=21) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text) AND ((mnt_shd_code)::text = (msal.mnt_shd_code)::text))
  • Filter: (mnt_shd_start_date = to_timestamp('1900-01-01 00:00:00'::text, 'YYYY-MM-DD hh24:mi:ss'::text))
  • Rows Removed by Filter: 1
  • Buffers: shared hit=3
88. 0.000 0.000 ↓ 0.0 0

Seq Scan on f1aso_mnt_shd_ctl_nest n (cost=0.00..1.07 rows=1 width=21) (never executed)

  • Filter: (((reg_name)::text = (msal.reg_name)::text) AND ((mnt_shd_code)::text = (msal.mnt_shd_code)::text))
89. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on f1asr_reg_asset_mh mh_2 (cost=8.45..36.01 rows=17 width=26) (never executed)

  • Recheck Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text))
90. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on f1faramh_idx2 (cost=0.00..8.45 rows=17 width=0) (never executed)

  • Index Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text))
91. 0.000 0.078 ↑ 1.0 1 6

Aggregate (cost=44.38..44.39 rows=1 width=8) (actual time=0.013..0.013 rows=1 loops=6)

  • Buffers: shared hit=18
92. 0.012 0.078 ↓ 0.0 0 6

Nested Loop Anti Join (cost=8.72..44.38 rows=1 width=0) (actual time=0.013..0.013 rows=0 loops=6)

  • Join Filter: (((mh_3.reg_name)::text = (al_1.reg_name)::text) AND ((mh_3.assnbri)::text = (al_1.assnbri)::text) AND ((mh_3.aso_mnt_shd_code)::text = (al_1.mnt_shd_code)::text))
  • Buffers: shared hit=18
93. 0.066 0.066 ↓ 0.0 0 6

Index Scan using f1asomsal_idx1 on f1aso_mnt_shd_asset_link al_1 (cost=0.28..8.30 rows=1 width=21) (actual time=0.011..0.011 rows=0 loops=6)

  • Index Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text) AND ((mnt_shd_code)::text = (msal.mnt_shd_code)::text))
  • Filter: (mnt_shd_start_date = to_timestamp('1900-01-01 00:00:00'::text, 'YYYY-MM-DD hh24:mi:ss'::text))
  • Rows Removed by Filter: 1
  • Buffers: shared hit=18
94. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on f1asr_reg_asset_mh mh_3 (cost=8.45..36.05 rows=2 width=26) (never executed)

  • Recheck Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text))
  • Filter: ((aso_mnt_shd_code)::text = (msal.mnt_shd_code)::text)
95. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on f1faramh_idx2 (cost=0.00..8.45 rows=17 width=0) (never executed)

  • Index Cond: (((reg_name)::text = (msal.reg_name)::text) AND ((assnbri)::text = (msal.assnbri)::text))
96. 0.014 0.126 ↑ 1.0 1 7

Aggregate (cost=12.59..12.60 rows=1 width=8) (actual time=0.018..0.018 rows=1 loops=7)

  • Buffers: shared hit=43
97. 0.021 0.112 ↓ 7.0 7 7

Nested Loop (cost=0.54..12.59 rows=1 width=0) (actual time=0.013..0.016 rows=7 loops=7)

  • Buffers: shared hit=43
98. 0.042 0.042 ↑ 1.0 1 7

Index Scan using tbfatc_idx4 on tbatt_attchmts_ctl attc (cost=0.27..8.29 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=7)

  • Index Cond: (((entity_type)::text = 'F1ASSNBR'::text) AND ((entity_key_1)::text = (a.reg_name)::text) AND ((entity_key_2)::text = (a.assnbri)::text))
  • Buffers: shared hit=21
99. 0.049 0.049 ↓ 7.0 7 7

Index Only Scan using tbfatd_idx1 on tbatt_attchmts_dtl attd (cost=0.27..4.29 rows=1 width=8) (actual time=0.005..0.007 rows=7 loops=7)

  • Index Cond: (unique_nbr = attc.unique_nbr)
  • Heap Fetches: 14
  • Buffers: shared hit=22
100. 0.014 0.063 ↑ 1.0 1 7

Aggregate (cost=4.29..4.30 rows=1 width=8) (actual time=0.008..0.009 rows=1 loops=7)

  • Buffers: shared hit=15
101. 0.049 0.049 ↑ 1.0 1 7

Index Only Scan using tbfatc_idx4 on tbatt_attchmts_ctl (cost=0.27..4.29 rows=1 width=0) (actual time=0.007..0.007 rows=1 loops=7)

  • Index Cond: ((entity_type = 'F1ASSNBR'::text) AND (entity_key_1 = (a.reg_name)::text) AND (entity_key_2 = (a.assnbri)::text))
  • Heap Fetches: 0
  • Buffers: shared hit=15
Planning time : 34.255 ms
Execution time : 47,804.913 ms