explain.depesz.com

PostgreSQL's explain analyze made readable

Result: BOWi

Settings
# exclusive inclusive rows x rows loops node
1. 0.036 670.108 ↓ 0.0 0 1

Sort (cost=92,086.49..92,086.62 rows=50 width=1,709) (actual time=670.108..670.108 rows=0 loops=1)

  • Sort Key: dvc.sequence
  • Sort Method: quicksort Memory: 25kB
2.          

Initplan (for Sort)

3. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.69..10.81 rows=1 width=0) (never executed)

  • Join Filter: ((persons_func.func_id = role.role_id) AND (org_func.org_id = role.org_id))
4. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..10.49 rows=1 width=24) (never executed)

5. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..8.84 rows=5 width=24) (never executed)

6. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..6.89 rows=1 width=8) (never executed)

7. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
8. 0.000 0.000 ↓ 0.0 0

Index Only Scan using idx_persons_person_id_not_deleted on persons persons_1 (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
9. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_func_pk on role_func (cost=0.29..1.89 rows=6 width=16) (never executed)

  • Index Cond: (role_id = persons_func.func_id)
  • Heap Fetches: 0
10. 0.000 0.000 ↓ 0.0 0

Index Scan using org_func_pk on org_func (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Index Cond: (org_func_id = role_func.org_func_id)
  • Filter: ((name)::text = 'COMPANY'::text)
11. 0.000 0.000 ↓ 0.0 0

Index Scan using role_pk on role (cost=0.28..0.31 rows=1 width=16) (never executed)

  • Index Cond: (role_id = role_func.role_id)
12. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.26..16.26 rows=1 width=0) (never executed)

13. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.11..13.22 rows=18 width=8) (never executed)

14. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.69..12.12 rows=1 width=16) (never executed)

  • Join Filter: ((persons_func_1.func_id = role_1.role_id) AND (org_func_1.org_id = role_1.org_id))
15. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..10.47 rows=5 width=40) (never executed)

16. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..8.84 rows=5 width=24) (never executed)

17. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..6.89 rows=1 width=8) (never executed)

18. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func persons_func_1 (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
19. 0.000 0.000 ↓ 0.0 0

Index Only Scan using idx_persons_person_id_not_deleted on persons persons_2 (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
20. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_func_pk on role_func role_func_1 (cost=0.29..1.89 rows=6 width=16) (never executed)

  • Index Cond: (role_id = persons_func_1.func_id)
  • Heap Fetches: 0
21. 0.000 0.000 ↓ 0.0 0

Index Scan using org_func_pk on org_func org_func_1 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_1.org_func_id)
22. 0.000 0.000 ↓ 0.0 0

Index Scan using role_pk on role role_1 (cost=0.28..0.31 rows=1 width=16) (never executed)

  • Index Cond: (role_id = role_func_1.role_id)
23. 0.000 0.000 ↓ 0.0 0

Index Only Scan using org_func_perms_pk on org_func_perms (cost=0.42..0.88 rows=22 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_1.org_func_id)
  • Heap Fetches: 0
24. 0.000 0.000 ↓ 0.0 0

Index Scan using perms_pk on perms (cost=0.15..0.17 rows=1 width=8) (never executed)

  • Index Cond: (perm_id = org_func_perms.perm_id)
  • Filter: ((name)::text = 'view.screen.UserDevices'::text)
25. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.26..16.30 rows=1 width=0) (never executed)

26. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.11..13.22 rows=18 width=8) (never executed)

27. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.69..12.12 rows=1 width=16) (never executed)

  • Join Filter: ((persons_func_2.func_id = role_2.role_id) AND (org_func_2.org_id = role_2.org_id))
28. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..10.47 rows=5 width=40) (never executed)

29. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..8.84 rows=5 width=24) (never executed)

30. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..6.89 rows=1 width=8) (never executed)

31. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func persons_func_2 (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
32. 0.000 0.000 ↓ 0.0 0

Index Only Scan using idx_persons_person_id_not_deleted on persons persons_3 (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
33. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_func_pk on role_func role_func_2 (cost=0.29..1.89 rows=6 width=16) (never executed)

  • Index Cond: (role_id = persons_func_2.func_id)
  • Heap Fetches: 0
34. 0.000 0.000 ↓ 0.0 0

Index Scan using org_func_pk on org_func org_func_2 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_2.org_func_id)
35. 0.000 0.000 ↓ 0.0 0

Index Scan using role_pk on role role_2 (cost=0.28..0.31 rows=1 width=16) (never executed)

  • Index Cond: (role_id = role_func_2.role_id)
36. 0.000 0.000 ↓ 0.0 0

Index Only Scan using org_func_perms_pk on org_func_perms org_func_perms_1 (cost=0.42..0.88 rows=22 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_2.org_func_id)
  • Heap Fetches: 0
37. 0.000 0.000 ↓ 0.0 0

Index Scan using perms_pk on perms perms_1 (cost=0.15..0.17 rows=1 width=8) (never executed)

  • Index Cond: (perm_id = org_func_perms_1.perm_id)
  • Filter: (((name)::text = 'view.screen.MyDevices'::text) OR ((name)::text = 'view.screen.UserDevices'::text))
38. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.26..16.26 rows=1 width=0) (never executed)

39. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.11..13.22 rows=18 width=8) (never executed)

40. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.69..12.12 rows=1 width=16) (never executed)

  • Join Filter: ((persons_func_3.func_id = role_3.role_id) AND (org_func_3.org_id = role_3.org_id))
41. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..10.47 rows=5 width=40) (never executed)

42. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..8.84 rows=5 width=24) (never executed)

43. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..6.89 rows=1 width=8) (never executed)

44. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func persons_func_3 (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
45. 0.000 0.000 ↓ 0.0 0

Index Only Scan using idx_persons_person_id_not_deleted on persons persons_4 (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = 7,731,412)
  • Heap Fetches: 0
46. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_func_pk on role_func role_func_3 (cost=0.29..1.89 rows=6 width=16) (never executed)

  • Index Cond: (role_id = persons_func_3.func_id)
  • Heap Fetches: 0
47. 0.000 0.000 ↓ 0.0 0

Index Scan using org_func_pk on org_func org_func_3 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_3.org_func_id)
48. 0.000 0.000 ↓ 0.0 0

Index Scan using role_pk on role role_3 (cost=0.28..0.31 rows=1 width=16) (never executed)

  • Index Cond: (role_id = role_func_3.role_id)
49. 0.000 0.000 ↓ 0.0 0

Index Only Scan using org_func_perms_pk on org_func_perms org_func_perms_2 (cost=0.42..0.88 rows=22 width=16) (never executed)

  • Index Cond: (org_func_id = role_func_3.org_func_id)
  • Heap Fetches: 0
50. 0.000 0.000 ↓ 0.0 0

Index Scan using perms_pk on perms perms_2 (cost=0.15..0.17 rows=1 width=8) (never executed)

  • Index Cond: (perm_id = org_func_perms_2.perm_id)
  • Filter: ((name)::text = 'view.screen.UserDevices'::text)
51. 0.001 670.072 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,008.02..92,025.46 rows=50 width=1,709) (actual time=670.072..670.072 rows=0 loops=1)

52. 0.000 670.071 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,007.88..92,007.84 rows=50 width=1,992) (actual time=670.071..670.071 rows=0 loops=1)

53. 0.001 670.071 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,007.73..91,992.21 rows=50 width=2,001) (actual time=670.071..670.071 rows=0 loops=1)

54. 0.001 670.070 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,007.59..91,984.08 rows=50 width=1,998) (actual time=670.070..670.070 rows=0 loops=1)

  • Filter: ($3 OR ((person_sups.sup_id IS NOT NULL) AND (dvc.person_id <> 7731412) AND $9) OR ((dvc.person_id = 7,731,412) AND $15) OR ($21 AND ((person_sups.sup_id IS NOT NULL) OR (SubPlan 5))))
55. 0.000 670.069 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,007.17..90,434.78 rows=57 width=1,998) (actual time=670.069..670.069 rows=0 loops=1)

56. 0.001 670.069 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,007.02..90,425.52 rows=57 width=1,995) (actual time=670.069..670.069 rows=0 loops=1)

57. 0.000 670.068 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,006.75..90,408.68 rows=57 width=1,812) (actual time=670.068..670.068 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'VOICE_IVR'::text)
58. 0.001 670.068 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,006.60..90,398.71 rows=57 width=1,646) (actual time=670.068..670.068 rows=0 loops=1)

59. 0.000 670.067 ↓ 0.0 0 1

Hash Left Join (cost=1,006.46..90,389.44 rows=57 width=1,428) (actual time=670.067..670.067 rows=0 loops=1)

  • Hash Cond: (dvc.dvc_id = txtpage.dvc_id)
  • Join Filter: ((dvc.dvc_type)::text = 'TEXT_PAGER'::text)
60. 0.001 670.067 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,005.25..90,388.09 rows=57 width=1,417) (actual time=670.067..670.067 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'IM'::text)
61. 0.001 670.066 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,005.11..90,378.11 rows=57 width=1,199) (actual time=670.066..670.066 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'APPLE_PUSH'::text)
62. 0.000 670.065 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,004.83..90,360.42 rows=57 width=1,073) (actual time=670.065..670.065 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'EMAIL'::text)
63. 0.001 670.065 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,004.40..90,327.70 rows=57 width=1,048) (actual time=670.065..670.065 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'NUMERIC_PAGER'::text)
64. 0.000 670.064 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,004.26..90,317.86 rows=57 width=382) (actual time=670.064..670.064 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'TEXT_PHONE'::text)
65. 0.001 670.064 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,003.83..90,288.55 rows=57 width=367) (actual time=670.064..670.064 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'FAX'::text)
66. 0.004 670.063 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,003.57..90,272.02 rows=57 width=354) (actual time=670.063..670.063 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'VOICE'::text)
67. 0.000 670.059 ↓ 0.0 0 1

Nested Loop (cost=1,003.15..90,236.45 rows=57 width=335) (actual time=670.059..670.059 rows=0 loops=1)

68. 0.001 670.059 ↓ 0.0 0 1

Nested Loop (cost=1,003.00..90,227.19 rows=57 width=337) (actual time=670.059..670.059 rows=0 loops=1)

69. 0.000 670.058 ↓ 0.0 0 1

Merge Join (cost=1,002.58..90,183.87 rows=57 width=337) (actual time=670.058..670.058 rows=0 loops=1)

  • Merge Cond: (persons.site_id = sites.site_id)
70. 44.603 699.930 ↓ 0.0 0 1

Gather Merge (cost=1,002.30..210,437.14 rows=57 width=337) (actual time=670.056..699.930 rows=0 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
71. 0.001 655.327 ↓ 0.0 0 4 / 4

Nested Loop (cost=2.26..209,430.40 rows=18 width=337) (actual time=655.327..655.327 rows=0 loops=4)

72. 0.463 655.326 ↓ 0.0 0 4 / 4

Nested Loop (cost=1.99..209,425.13 rows=18 width=315) (actual time=655.326..655.326 rows=0 loops=4)

73. 2.620 649.225 ↑ 2.0 1,879 4 / 4

Nested Loop (cost=1.71..208,256.32 rows=3,710 width=317) (actual time=110.941..649.225 rows=1,879 loops=4)

74. 0.788 639.088 ↑ 6.4 1,879 4 / 4

Nested Loop (cost=1.28..198,326.26 rows=12,083 width=202) (actual time=110.917..639.088 rows=1,879 loops=4)

75. 4.683 630.748 ↑ 34.1 472 4 / 4

Nested Loop (cost=0.85..169,786.91 rows=16,077 width=87) (actual time=110.851..630.748 rows=472 loops=4)

76. 188.258 188.258 ↑ 1.3 87,562 4 / 4

Parallel Index Scan using idx_persons4 on persons (cost=0.42..43,897.73 rows=113,010 width=30) (actual time=0.044..188.258 rows=87,562 loops=4)

  • Filter: (deleted_id = '-1'::integer)
  • Rows Removed by Filter: 118,548
77. 437.808 437.808 ↓ 0.0 0 350,246 / 4

Index Scan using recipients_recipient_id_not_deleted_idx on recipients rp (cost=0.43..1.11 rows=1 width=57) (actual time=0.005..0.005 rows=0 loops=350,246)

  • Index Cond: (recipient_id = persons.person_id)
  • Filter: (org_id = 200,029)
  • Rows Removed by Filter: 1
78. 7.552 7.552 ↑ 6.0 4 1,888 / 4

Index Scan using idx_dvc_person_id_not_deleted on dvc (cost=0.43..1.54 rows=24 width=123) (actual time=0.008..0.016 rows=4 loops=1,888)

  • Index Cond: (person_id = rp.recipient_id)
  • Filter: (org_uuid = 'a7d08606-2fa6-4830-b14c-f5c5a59b1472'::uuid)
79. 7.517 7.517 ↑ 1.0 1 7,517 / 4

Index Scan using recipients_recipient_id_not_deleted_idx on recipients rd (cost=0.43..0.82 rows=1 width=115) (actual time=0.004..0.004 rows=1 loops=7,517)

  • Index Cond: (recipient_id = dvc.dvc_id)
80. 5.638 5.638 ↓ 0.0 0 7,517 / 4

Index Scan using org_dvc_names_pk on org_dvc_names odn (cost=0.28..0.31 rows=1 width=28) (actual time=0.003..0.003 rows=0 loops=7,517)

  • Index Cond: (org_dvc_name_id = rd.org_dvc_name_id)
  • Filter: (((rd.uuid)::text = 'd20ad205-108f-4e3c-badb-a8e032daed44'::text) OR ((((rd.target_name_lower)::text || '|'::text) || (name_lower)::text) = 'd20ad205-108f-4e3c-badb-a8e032daed44'::text))
  • Rows Removed by Filter: 1
81. 0.000 0.000 ↓ 0.0 0 / 4

Index Scan using org_svc_provs_pk on org_svc_provs osp (cost=0.28..0.29 rows=1 width=38) (never executed)

  • Index Cond: (org_svc_prov_id = dvc.org_svc_prov_id)
82. 0.000 0.000 ↓ 0.0 0

Index Scan using sites_pk on sites (cost=0.29..965.38 rows=13,120 width=16) (never executed)

83. 0.000 0.000 ↓ 0.0 0

Index Scan using addresses_pk on addresses (cost=0.42..0.76 rows=1 width=16) (never executed)

  • Index Cond: (address_id = sites.address_id)
84. 0.000 0.000 ↓ 0.0 0

Index Scan using countries_pk on countries site_c (cost=0.14..0.16 rows=1 width=14) (never executed)

  • Index Cond: (country_id = addresses.country_id)
85. 0.000 0.000 ↓ 0.0 0

Index Scan using voc_dvc_dtl_pk on voc_dvc_dtl voc (cost=0.43..0.61 rows=1 width=27) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
86. 0.000 0.000 ↓ 0.0 0

Index Scan using fax_dvc_dtl_pk on fax_dvc_dtl fax (cost=0.26..0.28 rows=1 width=21) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
87. 0.000 0.000 ↓ 0.0 0

Index Scan using txt_phone_dvc_dtl_pk on txt_phone_dvc_dtl txtph (cost=0.42..0.50 rows=1 width=23) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
88. 0.000 0.000 ↓ 0.0 0

Index Scan using num_page_dvc_dtl_pk on num_page_dvc_dtl numpage (cost=0.14..0.16 rows=1 width=674) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
89. 0.000 0.000 ↓ 0.0 0

Index Scan using email_dvc_dtl_pk on email_dvc_dtl edd (cost=0.43..0.56 rows=1 width=33) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
90. 0.000 0.000 ↓ 0.0 0

Index Scan using apple_push_dvc_dtl_pk on apple_push_dvc_dtl push (cost=0.28..0.30 rows=1 width=134) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
91. 0.000 0.000 ↓ 0.0 0

Index Scan using im_dvc_dtl_pk on im_dvc_dtl im (cost=0.14..0.16 rows=1 width=226) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
92. 0.000 0.000 ↓ 0.0 0

Hash (cost=1.09..1.09 rows=9 width=19) (never executed)

93. 0.000 0.000 ↓ 0.0 0

Seq Scan on txt_page_dvc_dtl txtpage (cost=0.00..1.09 rows=9 width=19) (never executed)

94. 0.000 0.000 ↓ 0.0 0

Index Scan using gen_dvc_dtl_pk on gen_dvc_dtl gen (cost=0.14..0.16 rows=1 width=226) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
95. 0.000 0.000 ↓ 0.0 0

Index Scan using voice_ivr_dvc_dtl_pk on voice_ivr_dvc_dtl voiceivr (cost=0.14..0.16 rows=1 width=174) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
96. 0.000 0.000 ↓ 0.0 0

Index Scan using gcm_push_dvc_dtl_pk on gcm_push_dvc_dtl gcm (cost=0.28..0.30 rows=1 width=191) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
97. 0.000 0.000 ↓ 0.0 0

Index Scan using country_code_uc on countries voc_c (cost=0.14..0.16 rows=1 width=6) (never executed)

  • Index Cond: ((voc.country_code)::text = (country_code)::text)
98. 0.000 0.000 ↓ 0.0 0

Index Only Scan using person_sups_pk on person_sups (cost=0.42..0.45 rows=1 width=16) (never executed)

  • Index Cond: ((person_id = rp.recipient_id) AND (sup_id = 7,731,412))
  • Heap Fetches: 0
99.          

SubPlan (for Nested Loop Left Join)

100. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=4.22..26.72 rows=1 width=0) (never executed)

  • Join Filter: (target_role.role_id = t_pf.func_id)
101. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func t_pf (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = dvc.person_id)
  • Heap Fetches: 0
102. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=3.79..23.11 rows=14 width=24) (never executed)

103. 0.000 0.000 ↓ 0.0 0

Index Only Scan using person_person_id_desc_ufn_uln_fbi on persons target_p (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = dvc.person_id)
  • Heap Fetches: 0
104. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=3.37..19.52 rows=14 width=16) (never executed)

105. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=3.09..15.35 rows=14 width=8) (never executed)

  • Hash Cond: (role_perm_grants.role_perm_id = role_perms.role_perm_id)
106. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.97..14.12 rows=27 width=16) (never executed)

  • Join Filter: (persons_func_4.func_id = role_perm_grants.src_role_id)
107. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.55..12.15 rows=1 width=16) (never executed)

108. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.27..10.35 rows=1 width=8) (never executed)

109. 0.000 0.000 ↓ 0.0 0

Index Only Scan using persons_func_pk on persons_func persons_func_4 (cost=0.42..3.44 rows=1 width=16) (never executed)

  • Index Cond: (person_id = '7731412'::bigint)
  • Heap Fetches: 0
110. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..6.90 rows=1 width=8) (never executed)

111. 0.000 0.000 ↓ 0.0 0

Index Only Scan using recipients_recipient_id_not_deleted_idx on recipients r (cost=0.43..3.45 rows=1 width=8) (never executed)

  • Index Cond: (recipient_id = '7731412'::bigint)
  • Heap Fetches: 0
112. 0.000 0.000 ↓ 0.0 0

Index Only Scan using person_person_id_desc_ufn_uln_fbi on persons p (cost=0.42..3.44 rows=1 width=8) (never executed)

  • Index Cond: (person_id = '7731412'::bigint)
  • Heap Fetches: 0
113. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_pk on role viewer_role (cost=0.28..1.80 rows=1 width=8) (never executed)

  • Index Cond: (role_id = persons_func_4.func_id)
  • Heap Fetches: 0
114. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_perm_grants_pk on role_perm_grants (cost=0.41..1.55 rows=34 width=24) (never executed)

  • Index Cond: (src_role_id = viewer_role.role_id)
  • Heap Fetches: 0
115. 0.000 0.000 ↓ 0.0 0

Hash (cost=1.08..1.08 rows=3 width=8) (never executed)

116. 0.000 0.000 ↓ 0.0 0

Seq Scan on role_perms (cost=0.00..1.08 rows=3 width=8) (never executed)

  • Filter: ((name)::text = ANY ('{"Use Person","Edit Person","View Person"}'::text[]))
117. 0.000 0.000 ↓ 0.0 0

Index Only Scan using role_pk on role target_role (cost=0.28..0.30 rows=1 width=8) (never executed)

  • Index Cond: (role_id = role_perm_grants.target_role_id)
  • Heap Fetches: 0
118. 0.000 0.000 ↓ 0.0 0

Index Scan using country_code_uc on countries txtph_c (cost=0.14..0.16 rows=1 width=6) (never executed)

  • Index Cond: ((txtph.country_code)::text = (country_code)::text)
119. 0.000 0.000 ↓ 0.0 0

Index Scan using country_code_uc on countries numpage_c (cost=0.14..0.31 rows=1 width=6) (never executed)

  • Index Cond: ((numpage.country_code)::text = (country_code)::text)
120. 0.000 0.000 ↓ 0.0 0

Index Scan using country_code_uc on countries voiceivr_c (cost=0.14..0.24 rows=1 width=6) (never executed)

  • Index Cond: ((voiceivr.country_code)::text = (country_code)::text)
Planning time : 50.091 ms
Execution time : 701.111 ms