explain.depesz.com

PostgreSQL's explain analyze made readable

Result: y9u4

Settings
# exclusive inclusive rows x rows loops node
1. 0.014 6,084.934 ↑ 1.5 4 1

Unique (cost=40,974.26..674,161.94 rows=6 width=814) (actual time=6,077.604..6,084.934 rows=4 loops=1)

2. 0.116 6,084.920 ↑ 1.5 4 1

Nested Loop Left Join (cost=40,974.26..674,161.93 rows=6 width=814) (actual time=6,077.600..6,084.920 rows=4 loops=1)

3. 0.013 6,084.788 ↑ 1.5 4 1

Nested Loop Left Join (cost=40,973.98..674,008.68 rows=6 width=775) (actual time=6,077.540..6,084.788 rows=4 loops=1)

4. 0.008 6,084.747 ↑ 1.5 4 1

Nested Loop Left Join (cost=40,973.70..673,989.81 rows=6 width=765) (actual time=6,077.525..6,084.747 rows=4 loops=1)

5. 0.015 6,084.735 ↑ 1.5 4 1

Nested Loop Left Join (cost=40,973.27..673,969.87 rows=6 width=705) (actual time=6,077.518..6,084.735 rows=4 loops=1)

6. 32.805 6,084.680 ↑ 1.5 4 1

Merge Left Join (cost=40,972.84..673,919.14 rows=6 width=651) (actual time=6,077.488..6,084.680 rows=4 loops=1)

  • Merge Cond: (pmtrqstpkg_t.pmtrqst_pkg_uid = pkgpmta_t.pmtrqst_pkg_uid)
7. 0.010 5,113.778 ↑ 1.5 4 1

Merge Left Join (cost=6,369.39..581,722.74 rows=6 width=619) (actual time=5,106.611..5,113.778 rows=4 loops=1)

  • Merge Cond: (pmtrqstpkg_t.pmtrqst_pkg_uid = pmtrqavt_t.pmtrqst_pkg_uid)
8. 51.029 5,113.680 ↑ 1.5 4 1

Merge Left Join (cost=6,327.62..581,680.94 rows=6 width=587) (actual time=5,106.518..5,113.680 rows=4 loops=1)

  • Merge Cond: (pmtrqstpkg_t.pmtrqst_pkg_uid = pmtrqstevid_t.pmtrqst_pkg_uid)
9. 5.227 3,986.787 ↑ 1.5 4 1

Nested Loop Left Join (cost=6,327.20..428,926.16 rows=6 width=563) (actual time=3,979.705..3,986.787 rows=4 loops=1)

  • Join Filter: (ceappt_t.ce_appt_uid = "ceHist"."ceApptUid")
  • Rows Removed by Join Filter: 88,196
10. 0.012 3,950.976 ↑ 1.5 4 1

Nested Loop Left Join (cost=523.94..420,738.92 rows=6 width=555) (actual time=3,950.703..3,950.976 rows=4 loops=1)

  • Join Filter: (((pmtrqstpkg_t.rqst_typ_cd)::text = 'TRAH'::text) OR ((pmtrqstpkg_t.rqst_typ_cd)::text = 'INTH'::text))
11. 0.023 3,950.960 ↑ 1.5 4 1

Nested Loop Left Join (cost=523.65..420,693.03 rows=6 width=518) (actual time=3,950.696..3,950.960 rows=4 loops=1)

  • Join Filter: ((ceappt_t.spcarg_cd IS NULL) AND ((pmtrqstpkg_t.rqst_typ_cd)::text = 'CE'::text))
12. 0.019 3,950.921 ↑ 1.5 4 1

Nested Loop Left Join (cost=519.94..420,646.44 rows=6 width=514) (actual time=3,950.680..3,950.921 rows=4 loops=1)

  • Join Filter: (((pmtrqstpkg_t.rqst_typ_cd)::text = 'CE'::text) OR ((pmtrqstpkg_t.rqst_typ_cd)::text = 'TRA'::text) OR ((pmtrqstpkg_t.rqst_typ_cd)::text = 'INTC'::text))
13. 45.609 3,950.894 ↑ 1.5 4 1

Merge Left Join (cost=519.52..420,595.66 rows=6 width=445) (actual time=3,950.663..3,950.894 rows=4 loops=1)

  • Merge Cond: (pmtrqstpkg_t.pmtrqst_pkg_uid = pmtrqavt_t_1.pmtrqst_pkg_uid)
14. 0.009 0.217 ↑ 1.5 4 1

Sort (cost=519.08..519.10 rows=6 width=397) (actual time=0.216..0.217 rows=4 loops=1)

  • Sort Key: pmtrqstpkg_t.pmtrqst_pkg_uid
  • Sort Method: quicksort Memory: 26kB
15. 0.008 0.208 ↑ 1.5 4 1

Hash Left Join (cost=9.51..519.01 rows=6 width=397) (actual time=0.134..0.208 rows=4 loops=1)

  • Hash Cond: (pmtrqstpkg_t.rqst_uid = spcarg_t.spcarg_uid)
16. 0.003 0.150 ↑ 1.5 4 1

Nested Loop Left Join (cost=2.83..512.31 rows=6 width=389) (actual time=0.078..0.150 rows=4 loops=1)

17. 0.007 0.111 ↑ 1.5 4 1

Nested Loop Left Join (cost=2.27..341.95 rows=6 width=261) (actual time=0.062..0.111 rows=4 loops=1)

18. 0.003 0.060 ↑ 1.5 4 1

Nested Loop Left Join (cost=1.70..171.49 rows=6 width=220) (actual time=0.041..0.060 rows=4 loops=1)

19. 0.006 0.049 ↑ 1.5 4 1

Nested Loop Left Join (cost=1.42..121.69 rows=6 width=207) (actual time=0.034..0.049 rows=4 loops=1)

20. 0.003 0.039 ↑ 1.5 4 1

Nested Loop (cost=1.14..71.87 rows=6 width=207) (actual time=0.029..0.039 rows=4 loops=1)

21. 0.009 0.028 ↑ 1.5 4 1

Nested Loop (cost=0.85..22.06 rows=6 width=200) (actual time=0.022..0.028 rows=4 loops=1)

22. 0.009 0.009 ↑ 1.0 1 1

Index Scan using ixpk_dcpscase_t on dcpscase_t (cost=0.42..8.44 rows=1 width=40) (actual time=0.009..0.009 rows=1 loops=1)

  • Index Cond: (dcps_case_uid = 439,305)
23. 0.010 0.010 ↑ 1.5 4 1

Index Scan using ixn02_pmtrqstpkg_t on pmtrqstpkg_t (cost=0.43..13.56 rows=6 width=164) (actual time=0.007..0.010 rows=4 loops=1)

  • Index Cond: (dcps_case_uid = 439,305)
24. 0.008 0.008 ↑ 1.0 1 4

Index Scan using ixpk_organization_t on organization_t (cost=0.29..8.30 rows=1 width=11) (actual time=0.002..0.002 rows=1 loops=4)

  • Index Cond: (org_uid = pmtrqstpkg_t.initg_org_uid)
25. 0.004 0.004 ↑ 1.0 1 4

Index Scan using ixpk_organization_t on organization_t organization_t_1 (cost=0.29..8.30 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=4)

  • Index Cond: (org_uid = pmtrqstpkg_t.initg_disb_exmr_org_uid)
26. 0.008 0.008 ↑ 1.0 1 4

Index Scan using ixpk_dcpsuser_t on dcpsuser_t (cost=0.28..8.30 rows=1 width=21) (actual time=0.002..0.002 rows=1 loops=4)

  • Index Cond: (user_uid = pmtrqstpkg_t.initg_disb_exmr_user_uid)
27. 0.044 0.044 ↑ 1.0 1 4

Index Scan using ixf01_todoitemlistprnt on todoitemlist_t (cost=0.56..28.40 rows=1 width=53) (actual time=0.011..0.011 rows=1 loops=4)

  • Index Cond: ((prnt_tbl_seq_id)::text = ((pmtrqstpkg_t.pmtrqst_pkg_uid)::character varying)::text)
  • Filter: ((todo_itm_cd)::text = ANY ('{EVPR,CSPR,CTPR,HTPR}'::text[]))
  • Rows Removed by Filter: 0
28. 0.036 0.036 ↓ 0.0 0 4

Index Scan using ixf01_todoitemlistprnt on todoitemlist_t todoitemlist_t_1 (cost=0.56..28.38 rows=1 width=140) (actual time=0.009..0.009 rows=0 loops=4)

  • Index Cond: ((prnt_tbl_seq_id)::text = ((pmtrqstpkg_t.pmtrqst_pkg_uid)::character varying)::text)
  • Filter: ((deld_ts IS NULL) AND ((fup_typ)::text = 'FSCL'::text))
  • Rows Removed by Filter: 2
29. 0.019 0.050 ↑ 1.0 147 1

Hash (cost=4.84..4.84 rows=147 width=12) (actual time=0.050..0.050 rows=147 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 14kB
30. 0.031 0.031 ↑ 1.0 147 1

Seq Scan on spcarg_t (cost=0.00..4.84 rows=147 width=12) (actual time=0.006..0.031 rows=147 loops=1)

  • Filter: ((spcarg_cd)::text = 'INTP'::text)
31. 945.944 3,905.068 ↑ 1.1 757,867 1

GroupAggregate (cost=0.43..410,126.05 rows=796,038 width=52) (actual time=0.027..3,905.068 rows=757,867 loops=1)

  • Group Key: pmtrqavt_t_1.pmtrqst_pkg_uid
32. 2,959.124 2,959.124 ↑ 1.0 2,005,978 1

Index Scan using ibx03_pmtrqavt_t on pmtrqavt_t pmtrqavt_t_1 (cost=0.43..334,891.06 rows=2,069,988 width=16) (actual time=0.012..2,959.124 rows=2,005,978 loops=1)

  • Filter: ((fscl_stus_cd)::text = ANY ('{APRV,SBMT,PAID}'::text[]))
  • Rows Removed by Filter: 4,018,881
33. 0.008 0.008 ↓ 0.0 0 4

Index Scan using ceappt_pkey on ceappt_t (cost=0.43..8.45 rows=1 width=73) (actual time=0.002..0.002 rows=0 loops=4)

  • Index Cond: (ce_appt_uid = CASE WHEN (((pmtrqstpkg_t.rqst_typ_cd)::text = 'CE'::text) OR ((pmtrqstpkg_t.rqst_typ_cd)::text = 'TRA'::text)) THEN pmtrqstpkg_t.rqst_uid WHEN ((pmtrqstpkg_t.rqst_typ_cd)::text = 'INTC'::text) THEN spcarg_t.ce_appt_uid ELSE NULL::integer END)
34. 0.008 0.016 ↓ 0.0 0 4

Bitmap Heap Scan on ceappt_t ceappt_t_1 (cost=3.71..7.74 rows=2 width=8) (actual time=0.003..0.004 rows=0 loops=4)

  • Recheck Cond: ((ce_appt_uid = ceappt_t.prnt_appt_uid) OR (ceappt_t.ce_appt_uid = prnt_appt_uid))
  • Filter: (spcarg_cd IS NULL)
35. 0.008 0.008 ↓ 0.0 0 4

BitmapOr (cost=3.71..3.71 rows=2 width=0) (actual time=0.002..0.002 rows=0 loops=4)

36. 0.000 0.000 ↓ 0.0 0 4

Bitmap Index Scan on ceappt_pkey (cost=0.00..1.85 rows=1 width=0) (actual time=0.000..0.000 rows=0 loops=4)

  • Index Cond: (ce_appt_uid = ceappt_t.prnt_appt_uid)
37. 0.000 0.000 ↓ 0.0 0 4

Bitmap Index Scan on ixf01_ceappt_t (cost=0.00..1.86 rows=1 width=0) (actual time=0.000..0.000 rows=0 loops=4)

  • Index Cond: (prnt_appt_uid = ceappt_t.ce_appt_uid)
38. 0.004 0.004 ↓ 0.0 0 4

Index Scan using ixpk_hrgschinfo_t on hrgschinfo_t (cost=0.28..7.63 rows=1 width=41) (actual time=0.001..0.001 rows=0 loops=4)

  • Index Cond: (hrg_schg_info_uid = CASE WHEN ((pmtrqstpkg_t.rqst_typ_cd)::text = 'TRAH'::text) THEN pmtrqstpkg_t.rqst_uid WHEN ((pmtrqstpkg_t.rqst_typ_cd)::text = 'INTH'::text) THEN spcarg_t.hrg_schg_info_uid ELSE NULL::integer END)
39. 6.809 30.584 ↓ 1.0 22,049 4

Materialize (cost=5,803.26..6,333.04 rows=21,191 width=12) (actual time=4.579..7.646 rows=22,049 loops=4)

40. 1.865 23.775 ↓ 1.0 22,049 1

Subquery Scan on ceHist (cost=5,803.26..6,227.08 rows=21,191 width=12) (actual time=18.311..23.775 rows=22,049 loops=1)

41. 12.851 21.910 ↓ 1.0 22,049 1

HashAggregate (cost=5,803.26..6,015.17 rows=21,191 width=12) (actual time=18.309..21.910 rows=22,049 loops=1)

  • Group Key: ceappthist_t.ce_appt_uid
42. 7.497 9.059 ↓ 1.0 22,243 1

Bitmap Heap Scan on ceappthist_t (cost=415.33..5,693.00 rows=22,053 width=12) (actual time=2.089..9.059 rows=22,243 loops=1)

  • Recheck Cond: ((appt_stus_cd)::text = 'NOKT'::text)
  • Heap Blocks: exact=4,581
43. 1.562 1.562 ↓ 1.0 22,243 1

Bitmap Index Scan on ixb01_appt_stus_cd (cost=0.00..409.82 rows=22,053 width=0) (actual time=1.562..1.562 rows=22,243 loops=1)

  • Index Cond: ((appt_stus_cd)::text = 'NOKT'::text)
44. 571.770 1,075.864 ↓ 1.3 985,444 1

GroupAggregate (cost=0.43..143,190.76 rows=765,118 width=28) (actual time=0.023..1,075.864 rows=985,444 loops=1)

  • Group Key: pmtrqstevid_t.pmtrqst_pkg_uid
45. 504.094 504.094 ↑ 1.1 1,226,317 1

Index Scan using ix2_pmtrqstevid_t on pmtrqstevid_t (cost=0.43..119,356.55 rows=1,294,642 width=130) (actual time=0.014..504.094 rows=1,226,317 loops=1)

46. 0.009 0.088 ↑ 1.0 1 1

Sort (cost=41.77..41.77 rows=1 width=36) (actual time=0.088..0.088 rows=1 loops=1)

  • Sort Key: pmtrqavt_t.pmtrqst_pkg_uid
  • Sort Method: quicksort Memory: 25kB
47. 0.003 0.079 ↑ 1.0 1 1

Nested Loop (cost=31.78..41.76 rows=1 width=36) (actual time=0.078..0.079 rows=1 loops=1)

48. 0.004 0.053 ↑ 1.0 1 1

GroupAggregate (cost=31.35..31.37 rows=1 width=8) (actual time=0.052..0.053 rows=1 loops=1)

  • Group Key: pmtrqavt_t_2.pmtrqst_pkg_uid
49. 0.001 0.049 ↑ 1.0 1 1

Sort (cost=31.35..31.35 rows=1 width=8) (actual time=0.049..0.049 rows=1 loops=1)

  • Sort Key: pmtrqavt_t_2.pmtrqst_pkg_uid
  • Sort Method: quicksort Memory: 25kB
50. 0.003 0.048 ↑ 1.0 1 1

Nested Loop (cost=23.30..31.34 rows=1 width=8) (actual time=0.047..0.048 rows=1 loops=1)

51. 0.001 0.039 ↑ 1.0 1 1

Group (cost=22.87..22.88 rows=1 width=4) (actual time=0.039..0.039 rows=1 loops=1)

  • Group Key: pmtrqavt_t_3.pmtrqah_uid
52. 0.005 0.038 ↑ 1.0 1 1

Sort (cost=22.87..22.88 rows=1 width=4) (actual time=0.037..0.038 rows=1 loops=1)

  • Sort Key: pmtrqavt_t_3.pmtrqah_uid
  • Sort Method: quicksort Memory: 25kB
53. 0.002 0.033 ↑ 1.0 1 1

Nested Loop (cost=0.86..22.86 rows=1 width=4) (actual time=0.031..0.033 rows=1 loops=1)

54. 0.019 0.019 ↑ 1.0 1 1

Index Scan using ixn02_pmtrqstpkg_t on pmtrqstpkg_t pmtrqstpkg_t_1 (cost=0.43..13.59 rows=1 width=4) (actual time=0.018..0.019 rows=1 loops=1)

  • Index Cond: (dcps_case_uid = 439,305)
  • Filter: ((fscl_stus_cd)::text = ANY ('{REJT,ERR,NCOR,HOLD}'::text[]))
  • Rows Removed by Filter: 3
55. 0.012 0.012 ↑ 1.0 1 1

Index Scan using ibx03_pmtrqavt_t on pmtrqavt_t pmtrqavt_t_3 (cost=0.43..9.27 rows=1 width=8) (actual time=0.011..0.012 rows=1 loops=1)

  • Index Cond: (pmtrqst_pkg_uid = pmtrqstpkg_t_1.pmtrqst_pkg_uid)
  • Filter: ((pmtrqact_cd)::text = ANY ('{REJCT,COERR,RERCT,POHLD,MERRO}'::text[]))
  • Rows Removed by Filter: 2
56. 0.006 0.006 ↑ 1.0 1 1

Index Scan using pmtrqavt_t_pkey on pmtrqavt_t pmtrqavt_t_2 (cost=0.43..8.45 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=1)

  • Index Cond: (pmtrqah_uid = pmtrqavt_t_3.pmtrqah_uid)
57. 0.007 0.023 ↑ 1.0 1 1

Index Scan using pmtrqavt_t_pkey on pmtrqavt_t (cost=0.43..10.38 rows=1 width=40) (actual time=0.023..0.023 rows=1 loops=1)

  • Index Cond: (pmtrqah_uid = (max(pmtrqavt_t_2.pmtrqah_uid)))
58.          

SubPlan (for Index Scan)

59. 0.016 0.016 ↑ 1.0 1 1

Seq Scan on prqactrsncd_t (cost=0.00..1.93 rows=1 width=32) (actual time=0.014..0.016 rows=1 loops=1)

  • Filter: ((pmtrqact_rsn_cd)::text = (pmtrqavt_t.pmtrqact_rsn_cd)::text)
  • Rows Removed by Filter: 73
60. 288.497 938.097 ↓ 2,298.5 459,691 1

GroupAggregate (cost=34,603.45..92,193.88 rows=200 width=36) (actual time=402.018..938.097 rows=459,691 loops=1)

  • Group Key: pkgpmta_t.pmtrqst_pkg_uid
61. 97.078 649.600 ↑ 1.1 461,151 1

Group (cost=34,603.45..84,900.46 rows=486,061 width=22) (actual time=402.001..649.600 rows=461,151 loops=1)

  • Group Key: pkgpmta_t.pmtrqst_pkg_uid, pmt_t.pmt_num
62. 90.916 552.522 ↓ 1.1 461,405 1

Gather Merge (cost=34,603.45..82,875.21 rows=405,050 width=22) (actual time=401.999..552.522 rows=461,405 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
63. 48.309 461.606 ↑ 1.3 154,467 3 / 3

Group (cost=33,603.43..35,122.37 rows=202,525 width=22) (actual time=387.412..461.606 rows=154,467 loops=3)

  • Group Key: pkgpmta_t.pmtrqst_pkg_uid, pmt_t.pmt_num
64. 171.847 413.297 ↑ 1.3 157,588 3 / 3

Sort (cost=33,603.43..34,109.74 rows=202,525 width=22) (actual time=387.409..413.297 rows=157,588 loops=3)

  • Sort Key: pkgpmta_t.pmtrqst_pkg_uid, pmt_t.pmt_num
  • Sort Method: external merge Disk: 4,336kB
  • Worker 0: Sort Method: external merge Disk: 5,184kB
  • Worker 1: Sort Method: external merge Disk: 4,744kB
65. 112.417 241.450 ↑ 1.3 158,783 3 / 3

Parallel Hash Join (cost=8,653.25..15,753.14 rows=202,525 width=22) (actual time=98.291..241.450 rows=158,783 loops=3)

  • Hash Cond: (pkgpmta_t.pmt_uid = pmt_t.pmt_uid)
66. 33.253 33.253 ↑ 1.3 158,783 3 / 3

Parallel Seq Scan on pkgpmta_t (cost=0.00..6,568.25 rows=202,525 width=8) (actual time=0.007..33.253 rows=158,783 loops=3)

67. 59.488 95.780 ↑ 1.3 129,954 3 / 3

Parallel Hash (cost=6,588.11..6,588.11 rows=165,211 width=22) (actual time=95.780..95.780 rows=129,954 loops=3)

  • Buckets: 524,288 Batches: 1 Memory Usage: 25,856kB
68. 36.292 36.292 ↑ 1.3 129,954 3 / 3

Parallel Seq Scan on pmt_t (cost=0.00..6,588.11 rows=165,211 width=22) (actual time=0.008..36.292 rows=129,954 loops=3)

69. 0.040 0.040 ↑ 1.0 1 4

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t (cost=0.43..8.45 rows=1 width=58) (actual time=0.009..0.010 rows=1 loops=4)

  • Index Cond: (pmtrqst_pkg_uid = pmtrqstpkg_t.pmtrqst_pkg_uid)
  • Filter: (fscl_stus_cd IS NULL)
70. 0.004 0.004 ↓ 0.0 0 4

Index Scan using cccntct_pkey on cccntct_t (cost=0.42..3.32 rows=1 width=64) (actual time=0.001..0.001 rows=0 loops=4)

  • Index Cond: (clnt_cntct_uid = pmtrqst_t.tp_pye_uid)
71. 0.028 0.028 ↑ 1.0 1 4

Index Scan using ixf02_pin on dcpsuser_t dcpsuser_t_1 (cost=0.28..3.13 rows=1 width=23) (actual time=0.007..0.007 rows=1 loops=4)

  • Index Cond: ((pin)::text = (pmtrqst_t.lu_pin)::text)
72. 0.016 0.016 ↑ 1.0 1 4

Index Scan using ixf02_pin on dcpsuser_t dcpsuser_t_2 (cost=0.28..8.30 rows=1 width=23) (actual time=0.003..0.004 rows=1 loops=4)

  • Index Cond: ((pin)::text = (pmtrqstpkg_t.lu_pin)::text)
73.          

SubPlan (for Nested Loop Left Join)

74. 0.000 0.000 ↓ 0.0 0

Result (cost=17.11..17.12 rows=1 width=32) (never executed)

75.          

Initplan (for Result)

76. 0.000 0.000 ↓ 0.0 0

ProjectSet (cost=1.00..17.11 rows=2 width=32) (never executed)

77. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.00..17.09 rows=1 width=33) (never executed)

78. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.71..16.75 rows=1 width=4) (never executed)

79. 0.000 0.000 ↓ 0.0 0

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t pmtrqst_t_1 (cost=0.43..8.45 rows=1 width=4) (never executed)

  • Index Cond: (pmtrqst_pkg_uid = pmtrqstpkg_t.pmtrqst_pkg_uid)
80. 0.000 0.000 ↓ 0.0 0

Index Scan using catalog_product_uid_pkey on stcatlgprod_t (cost=0.29..8.30 rows=1 width=8) (never executed)

  • Index Cond: (st_catlg_prod_uid = pmtrqst_t_1.st_catlg_prod_uid)
81. 0.000 0.000 ↓ 0.0 0

Index Scan using prod_uid_pkey on product_t (cost=0.29..0.34 rows=1 width=37) (never executed)

  • Index Cond: (prod_uid = stcatlgprod_t.prod_uid)
Planning time : 15.389 ms
Execution time : 6,095.030 ms