explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Say

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 853.319 ↓ 128.7 13,517 1

Gather (cost=1,155.37..22,912.50 rows=105 width=549) (actual time=2.668..853.319 rows=13,517 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.646 373.805 ↓ 102.4 4,506 3 / 3

Nested Loop Left Join (cost=155.37..14,216.33 rows=44 width=393) (actual time=2.414..373.805 rows=4,506 loops=3)

3. 20.683 347.631 ↓ 102.4 4,506 3 / 3

Nested Loop Left Join (cost=154.95..14,188.21 rows=44 width=339) (actual time=2.401..347.631 rows=4,506 loops=3)

  • -> Index Scan using ix_cccntct_t_dcps_case_uid on cccntct_t (cost=0.42..0.63 rows=1 width=29)(actual time=0.004..0.004 rows=0 loops=13,474)
4. 9.674 326.948 ↓ 102.1 4,491 3 / 3

Nested Loop (cost=154.53..14,160.18 rows=44 width=314) (actual time=2.387..326.948 rows=4,491 loops=3)

  • Index Cond: (dcpscase_t.dcps_case_uid = dcps_case_uid)
  • Filter: ((cntct_dactvd_dt IS NULL) AND ((cntct_typ_cd)::text = '3'::text))
  • Rows Removed by Filter: 1
5. 5.438 299.309 ↓ 102.1 4,491 3 / 3

Nested Loop (cost=154.11..14,118.38 rows=44 width=278) (actual time=2.373..299.309 rows=4,491 loops=3)

6. 5.259 261.413 ↓ 14.8 6,492 3 / 3

Hash Join (cost=153.68..13,468.69 rows=440 width=78) (actual time=2.259..261.413 rows=6,492 loops=3)

  • Hash Cond: (pmtrqstpkg_t.initg_org_uid = organization_t.org_uid)
7. 37.642 255.793 ↓ 5.3 24,789 3 / 3

Merge Join (cost=1.02..13,303.75 rows=4,678 width=79) (actual time=1.790..255.793 rows=24,789 loops=3)

  • Merge Cond: (pmtrqstpkg_t.rqst_uid = ceappt_t.ce_appt_uid)
8. 182.176 182.176 ↑ 1.2 24,789 3 / 3

Parallel Index Scan using ixn01_pmtrqstpkg_t on pmtrqstpkg_t (cost=0.42..40,748.94 rows=30,922 width=54) (actual time=0.011..182.176 rows=24,789 loops=3)

  • Filter: ((rqst_typ_cd)::text = 'CE'::text)
  • Rows Removed by Filter: 186,768
9. 35.975 35.975 ↑ 1.4 55,080 3 / 3

Index Scan using ceappt_pkey on ceappt_t (cost=0.29..3,606.76 rows=74,395 width=25) (actual time=0.015..35.975 rows=55,080 loops=3)

10. 0.109 0.361 ↑ 1.0 500 3 / 3

Hash (cost=146.41..146.41 rows=500 width=7) (actual time=0.361..0.361 rows=500 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 28kB
11. 0.196 0.252 ↑ 1.0 500 3 / 3

Bitmap Heap Scan on organization_t (cost=12.16..146.41 rows=500 width=7) (actual time=0.064..0.252 rows=500 loops=3)

  • Recheck Cond: ((st_cd)::text = 'OH'::text)
  • Heap Blocks: exact=44
12. 0.056 0.056 ↑ 1.0 500 3 / 3

Bitmap Index Scan on ixb01_orgainzation_t (cost=0.00..12.03 rows=500 width=0) (actual time=0.056..0.056 rows=500 loops=3)

  • Index Cond: ((st_cd)::text = 'OH'::text)
13. 32.458 32.458 ↑ 1.0 1 19,475 / 3

Index Scan using ixf02_pmtrqstpkguid on pmtrqst_t (cost=0.42..1.47 rows=1 width=212) (actual time=0.005..0.005 rows=1 loops=19,475)

  • Index Cond: (pmtrqst_pkg_uid = pmtrqstpkg_t.pmtrqst_pkg_uid)
  • Filter: (((rqst_typ_cd)::text = 'CE'::text) AND ((((pmtrqstpkg_t.fscl_stus_cd)::text = ANY ('{OBLG,NEW,APRV}'::text[])) AND (fscl_stus_cd IS NULL)) OR (((pmtrqstpkg_t.fscl_stus_cd)::text ='DEND'::text) AND (fscl_stus_cd IS NULL) AND (xmitd_ts < pmtrqstpkg_t.stus_chg_ts)) OR (xmitd_ts IS NULL) OR (((fscl_stus_cd)::text = 'REJT'::text) AND (xmitd_ts IS NULL)) OR (((fscl_stus_cd)::text = 'REJT'::text) AND (xmitd_ts < stus_chg_ts))))
  • Rows Removed by Filter: 1
14. 17.965 17.965 ↑ 1.0 1 13,474 / 3

Index Scan using ixpk_dcpscase_t on dcpscase_t (cost=0.42..0.95 rows=1 width=36) (actual time=0.004..0.004 rows=1 loops=13,474)

  • Index Cond: (dcps_case_uid = pmtrqst_t.dcps_case_uid)
15. 22.528 22.528 ↑ 1.0 1 13,517 / 3

Index Scan using ixf01_clntaddr on clntaddr_t (cost=0.42..0.63 rows=1 width=58) (actual time=0.005..0.005 rows=1 loops=13,517)

  • Index Cond: (dcpscase_t.dcps_case_uid = dcps_case_uid)
  • Filter: ((addr_subtyp)::text = 'M'::text)
  • Rows Removed by Filter: 1
16.          

SubPlan (for Gather)

17. 49.851 108.136 ↑ 1.0 1 13,517

Nested Loop Left Join (cost=0.42..9.71 rows=1 width=32) (actual time=0.007..0.008 rows=1 loops=13,517)

  • Join Filter: ((caseclm_t.clm_typ)::text = (t2clmcd_t.cd)::text)
  • Rows Removed by Join Filter: 11
18. 40.551 40.551 ↑ 1.0 1 13,517

Index Scan using ixf01_caseclm on caseclm_t (cost=0.42..8.44 rows=1 width=3) (actual time=0.003..0.003 rows=1 loops=13,517)

  • Index Cond: (dcps_case_uid = dcpscase_t.dcps_case_uid)
19. 17.734 17.734 ↑ 1.3 9 17,734

Seq Scan on t2clmcd_t (cost=0.00..1.12 rows=12 width=4) (actual time=0.001..0.001 rows=9 loops=17,734)

20. 54.068 54.068 ↑ 1.0 1 13,517

Aggregate (cost=8.54..8.55 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=13,517)

  • -> Index Scan using ceappthist_t_ce_appt_uid_idx on ceappthist_t (cost=0.42..8.53 rows=1 width=8)(actual time=0.003..0.003 rows=1 loops=13,517)
  • Index Cond: (ce_appt_uid = ceappt_t.ce_appt_uid)
  • Filter: ((appt_stus_cd)::text = (ceappt_t.appt_stus_cd)::text)
  • Rows Removed by Filter: 1
21. 13.517 148.687 ↑ 1.0 1 13,517

Limit (cost=1.14..17.63 rows=1 width=6) (actual time=0.010..0.011 rows=1 loops=13,517)

22. 2.047 135.170 ↑ 1.0 1 13,517

Nested Loop (cost=1.14..17.63 rows=1 width=6) (actual time=0.010..0.010 rows=1 loops=13,517)

23. 0.000 94.619 ↑ 1.0 1 13,517

Nested Loop (cost=0.85..17.24 rows=1 width=4) (actual time=0.007..0.007 rows=1 loops=13,517)

  • Join Filter: (stcatlgprod_t.prod_uid = prodrlshp_t.rltd_prod_uid)
24. 13.517 54.068 ↑ 1.0 1 13,517

Nested Loop (cost=0.57..16.60 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=13,517)

25. 27.034 27.034 ↑ 1.0 1 13,517

Index Scan using catalog_product_uid_pkey on stcatlgprod_t (cost=0.29..8.30 rows=1 width=4) (actual time=0.001..0.002 rows=1 loops=13,517)

  • Index Cond: (st_catlg_prod_uid = pmtrqst_t.st_catlg_prod_uid)
26. 13.517 13.517 ↑ 1.0 1 13,517

Index Only Scan using prod_uid_pkey on product_t (cost=0.28..8.30 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=13,517)

  • Index Cond: (prod_uid = stcatlgprod_t.prod_uid)
  • Heap Fetches: 13,517
27. 40.551 40.551 ↑ 5.0 1 13,517

Index Scan using prodrlshp_t_rltd_prod_uid_idx on prodrlshp_t (cost=0.29..0.57 rows=5 width=8) (actual time=0.002..0.003 rows=1 loops=13,517)

  • Index Cond: (rltd_prod_uid = product_t.prod_uid)
  • Filter: (((eff_endt IS NULL) OR (eff_endt > '2020-02-03'::date)) AND (eff_stdt <='2020-02-03'::date) AND ((prod_rlshp_typ_cd)::text = 'M'::text))
  • Rows Removed by Filter: 0
28. 38.504 38.504 ↑ 1.0 1 19,252

Index Scan using prod_uid_pkey on product_t product_t_1 (cost=0.28..0.39 rows=1 width=10) (actual time=0.002..0.002 rows=1 loops=19,252)

  • Index Cond: (prod_uid = prodrlshp_t.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
29. 13.517 189.238 ↑ 1.0 1 13,517

Limit (cost=1.55..18.07 rows=1 width=6) (actual time=0.013..0.014 rows=1 loops=13,517)

30. 2.047 175.721 ↑ 1.0 1 13,517

Nested Loop (cost=1.55..18.07 rows=1 width=6) (actual time=0.013..0.013 rows=1 loops=13,517)

31. 13.517 135.170 ↑ 1.0 1 13,517

Nested Loop (cost=1.27..17.67 rows=1 width=4) (actual time=0.009..0.010 rows=1 loops=13,517)

32. 13.517 94.619 ↑ 1.0 1 13,517

Nested Loop (cost=0.98..17.08 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=13,517)

33. 13.517 67.585 ↑ 1.0 1 13,517

Nested Loop (cost=0.70..16.74 rows=1 width=4) (actual time=0.005..0.005 rows=1 loops=13,517)

34. 27.034 27.034 ↑ 1.0 1 13,517

Index Scan using ceapptitem_pkey on ceapptitem_t (cost=0.42..8.44 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=13,517)

  • Index Cond: (ce_appt_itm_uid = pmtrqst_t.pmtrqst_li_id)
35. 27.034 27.034 ↑ 1.0 1 13,517

Index Scan using catalog_product_uid_pkey on stcatlgprod_t stcatlgprod_t_1 (cost=0.29..8.30 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=13,517)

  • Index Cond: (st_catlg_prod_uid = ceapptitem_t.st_catlg_prod_uid)
36. 13.517 13.517 ↑ 1.0 1 13,517

Index Only Scan using prod_uid_pkey on product_t product_t_2 (cost=0.28..0.34 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=13,517)

  • Index Cond: (prod_uid = stcatlgprod_t_1.prod_uid)
  • Heap Fetches: 13,517
37. 27.034 27.034 ↑ 5.0 1 13,517

Index Scan using prodrlshp_t_rltd_prod_uid_idx on prodrlshp_t prodrlshp_t_1 (cost=0.29..0.54 rows=5 width=8) (actual time=0.002..0.002 rows=1 loops=13,517)

  • Index Cond: (rltd_prod_uid = stcatlgprod_t_1.prod_uid)
  • Filter: (((eff_endt IS NULL) OR (eff_endt > '2020-02-03'::date)) AND (eff_stdt <='2020-02-03'::date) AND ((prod_rlshp_typ_cd)::text = 'M'::text))
  • Rows Removed by Filter: 0
38. 38.504 38.504 ↑ 1.0 1 19,252

Index Scan using prod_uid_pkey on product_t product_t_3 (cost=0.28..0.39 rows=1 width=10) (actual time=0.002..0.002 rows=1 loops=19,252)

  • Index Cond: (prod_uid = prodrlshp_t_1.prod_uid)
  • Filter: ((prod_nmspace_cd)::text = 'OH'::text)
  • Rows Removed by Filter: 0
39. 13.517 148.687 ↑ 1.0 1 13,517

Aggregate (cost=19.23..19.24 rows=1 width=8) (actual time=0.011..0.011 rows=1 loops=13,517)

40. 13.848 135.170 ↑ 1.0 1 13,517

Nested Loop (cost=0.85..19.23 rows=1 width=8) (actual time=0.007..0.010 rows=1 loops=13,517)

41. 81.102 81.102 ↑ 1.0 1 13,517

Index Scan using ixf03_rqstuid on corrtrkg_t (cost=0.43..10.77 rows=1 width=4) (actual time=0.004..0.006 rows=1 loops=13,517)

  • Index Cond: (rqst_uid = ceappt_t.ce_appt_uid)
  • Filter: (((rcpnt_typ_cd)::text = 'M'::text) AND ((rqst_typ_cd)::text = 'CE'::text))
  • Rows Removed by Filter: 4
42. 40.220 40.220 ↑ 1.0 1 20,110

Index Scan using ixf01_barcdtrkg_t_corrtrkg on barcdtrkg_t (cost=0.43..8.45 rows=1 width=12) (actual time=0.002..0.002 rows=1 loops=20,110)

  • Index Cond: (crsp_trkg_uid = corrtrkg_t.crsp_trkg_uid)
Planning time : 7.348 ms
Execution time : 854.462 ms