explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DxDr

Settings
# exclusive inclusive rows x rows loops node
1. 0.007 473.100 ↓ 0.0 0 1

Sort (cost=171,839.44..171,839.73 rows=118 width=1,709) (actual time=473.100..473.100 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 = 7731412)
  • 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 473.093 ↓ 0.0 0 1

Hash Left Join (cost=2,211.53..171,775.75 rows=118 width=1,709) (actual time=473.093..473.093 rows=0 loops=1)

  • Hash Cond: ((voiceivr.country_code)::text = (voiceivr_c.country_code)::text)
52. 0.001 473.092 ↓ 0.0 0 1

Hash Left Join (cost=2,200.95..171,751.30 rows=118 width=1,992) (actual time=473.092..473.092 rows=0 loops=1)

  • Hash Cond: ((numpage.country_code)::text = (numpage_c.country_code)::text)
53. 0.001 473.091 ↓ 0.0 0 1

Hash Left Join (cost=2,190.37..171,740.41 rows=118 width=2,001) (actual time=473.091..473.091 rows=0 loops=1)

  • Hash Cond: ((txtph.country_code)::text = (txtph_c.country_code)::text)
54. 0.000 473.090 ↓ 0.0 0 1

Hash Left Join (cost=2,179.79..171,729.52 rows=118 width=1,998) (actual time=473.090..473.090 rows=0 loops=1)

  • Hash Cond: (rp.recipient_id = person_sups.person_id)
  • Filter: ($3 OR ((person_sups.sup_id IS NOT NULL) AND (dvc.person_id <> 7731412) AND $9) OR ((dvc.person_id = 7731412) AND $15) OR ($21 AND ((person_sups.sup_id IS NOT NULL) OR (SubPlan 5))))
55. 0.001 473.090 ↓ 0.0 0 1

Hash Left Join (cost=1,086.42..170,635.79 rows=135 width=1,998) (actual time=473.089..473.090 rows=0 loops=1)

  • Hash Cond: ((voc.country_code)::text = (voc_c.country_code)::text)
56. 0.001 473.089 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,075.84..170,624.85 rows=135 width=1,995) (actual time=473.089..473.089 rows=0 loops=1)

57. 0.000 473.088 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,075.56..170,584.98 rows=135 width=1,812) (actual time=473.088..473.088 rows=0 loops=1)

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

Nested Loop Left Join (cost=1,075.42..170,561.35 rows=135 width=1,646) (actual time=473.088..473.088 rows=0 loops=1)

59. 0.000 473.087 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,075.27..170,539.41 rows=135 width=1,428) (actual time=473.087..473.087 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'TEXT_PAGER'::text)
60. 0.001 473.087 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,075.14..170,517.13 rows=135 width=1,417) (actual time=473.086..473.087 rows=0 loops=1)

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

Nested Loop Left Join (cost=1,074.99..170,493.50 rows=135 width=1,199) (actual time=473.086..473.086 rows=0 loops=1)

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

Nested Loop Left Join (cost=1,074.71..170,451.60 rows=135 width=1,073) (actual time=473.085..473.085 rows=0 loops=1)

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

Nested Loop Left Join (cost=1,074.57..170,428.31 rows=135 width=407) (actual time=473.085..473.085 rows=0 loops=1)

  • Join Filter: ((dvc.dvc_type)::text = 'FAX'::text)
64. 43.231 500.397 ↓ 0.0 0 1

Gather (cost=1,074.31..170,389.15 rows=135 width=394) (actual time=473.084..500.397 rows=0 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
65. 0.001 457.166 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=74.31..169,375.65 rows=34 width=394) (actual time=457.166..457.166 rows=0 loops=5)

  • Join Filter: ((dvc.dvc_type)::text = 'EMAIL'::text)
66. 0.001 457.165 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=73.88..169,356.13 rows=34 width=369) (actual time=457.165..457.165 rows=0 loops=5)

  • Join Filter: ((dvc.dvc_type)::text = 'TEXT_PHONE'::text)
67. 0.000 457.164 ↓ 0.0 0 5 / 5

Nested Loop Left Join (cost=73.46..169,338.65 rows=34 width=354) (actual time=457.164..457.164 rows=0 loops=5)

  • Join Filter: ((dvc.dvc_type)::text = 'VOICE'::text)
68. 0.001 457.164 ↓ 0.0 0 5 / 5

Nested Loop (cost=73.03..169,317.43 rows=34 width=335) (actual time=457.164..457.164 rows=0 loops=5)

69. 0.000 457.163 ↓ 0.0 0 5 / 5

Nested Loop (cost=72.89..169,311.90 rows=34 width=337) (actual time=457.163..457.163 rows=0 loops=5)

70. 0.001 457.163 ↓ 0.0 0 5 / 5

Nested Loop (cost=72.47..169,286.07 rows=34 width=337) (actual time=457.163..457.163 rows=0 loops=5)

71. 0.000 457.162 ↓ 0.0 0 5 / 5

Nested Loop (cost=72.19..169,275.75 rows=34 width=337) (actual time=457.162..457.162 rows=0 loops=5)

72. 0.000 457.162 ↓ 0.0 0 5 / 5

Nested Loop (cost=71.76..169,258.80 rows=34 width=315) (actual time=457.162..457.162 rows=0 loops=5)

73. 0.001 457.162 ↓ 0.0 0 5 / 5

Nested Loop (cost=71.48..169,248.85 rows=34 width=293) (actual time=457.161..457.162 rows=0 loops=5)

74. 0.001 457.161 ↓ 0.0 0 5 / 5

Nested Loop (cost=71.06..169,052.64 rows=238 width=236) (actual time=457.161..457.161 rows=0 loops=5)

75. 88.148 457.160 ↓ 0.0 0 5 / 5

Hash Join (cost=70.63..167,931.39 rows=1,876 width=113) (actual time=457.160..457.160 rows=0 loops=5)

  • Hash Cond: (rd.org_dvc_name_id = odn.org_dvc_name_id)
  • Join Filter: (((rd.uuid)::text = 'd20ad205-108f-4e3c-badb-a8e032daed44'::text) OR ((((rd.target_name_lower)::text || '|'::text) || (odn.name_lower)::text) = 'd20ad205-108f-4e3c-badb-a8e032daed44'::text))
  • Rows Removed by Join Filter: 219843
76. 367.964 367.964 ↑ 1.3 294,783 5 / 5

Parallel Seq Scan on recipients rd (cost=0.00..166,876.12 rows=375,091 width=115) (actual time=0.018..367.964 rows=294,783 loops=5)

  • Filter: (deleted_id = '-1'::integer)
  • Rows Removed by Filter: 682481
77. 0.402 1.048 ↑ 1.0 1,539 5 / 5

Hash (cost=51.39..51.39 rows=1,539 width=28) (actual time=1.048..1.048 rows=1,539 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 113kB
78. 0.646 0.646 ↑ 1.0 1,539 5 / 5

Seq Scan on org_dvc_names odn (cost=0.00..51.39 rows=1,539 width=28) (actual time=0.023..0.646 rows=1,539 loops=5)

79. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using dvc_pk on dvc (cost=0.43..0.60 rows=1 width=123) (never executed)

  • Index Cond: (dvc_id = rd.recipient_id)
  • Filter: ((deleted_id = '-1'::integer) AND (org_uuid = 'a7d08606-2fa6-4830-b14c-f5c5a59b1472'::uuid))
80. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using recipients_recipient_id_not_deleted_idx on recipients rp (cost=0.43..0.82 rows=1 width=57) (never executed)

  • Index Cond: (recipient_id = dvc.person_id)
  • Filter: (org_id = 200029)
81. 0.000 0.000 ↓ 0.0 0 / 5

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 / 5

Index Scan using persons_pk on persons (cost=0.42..0.50 rows=1 width=30) (never executed)

  • Index Cond: (person_id = rp.recipient_id)
83. 0.000 0.000 ↓ 0.0 0 / 5

Index Scan using sites_pk on sites (cost=0.29..0.30 rows=1 width=16) (never executed)

  • Index Cond: (site_id = persons.site_id)
84. 0.000 0.000 ↓ 0.0 0 / 5

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)
85. 0.000 0.000 ↓ 0.0 0 / 5

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)
86. 0.000 0.000 ↓ 0.0 0 / 5

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)
87. 0.000 0.000 ↓ 0.0 0 / 5

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 / 5

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)
89. 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)
90. 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)
91. 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)
92. 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)
93. 0.000 0.000 ↓ 0.0 0

Index Scan using txt_page_dvc_dtl_pk on txt_page_dvc_dtl txtpage (cost=0.14..0.15 rows=1 width=19) (never executed)

  • Index Cond: (dvc.dvc_id = dvc_id)
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

Hash (cost=7.48..7.48 rows=248 width=6) (never executed)

98. 0.000 0.000 ↓ 0.0 0

Seq Scan on countries voc_c (cost=0.00..7.48 rows=248 width=6) (never executed)

99. 0.000 0.000 ↓ 0.0 0

Hash (cost=1,074.28..1,074.28 rows=1,527 width=16) (never executed)

100. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_person_sups2 on person_sups (cost=0.42..1,074.28 rows=1,527 width=16) (never executed)

  • Index Cond: (sup_id = 7731412)
101.          

SubPlan (for Hash Left Join)

102. 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)
103. 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
104. 0.000 0.000 ↓ 0.0 0

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

105. 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
106. 0.000 0.000 ↓ 0.0 0

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

107. 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)
108. 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)
109. 0.000 0.000 ↓ 0.0 0

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

110. 0.000 0.000 ↓ 0.0 0

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

111. 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
112. 0.000 0.000 ↓ 0.0 0

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

113. 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
114. 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
115. 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
116. 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
117. 0.000 0.000 ↓ 0.0 0

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

118. 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[]))
119. 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
120. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.48..7.48 rows=248 width=6) (never executed)

121. 0.000 0.000 ↓ 0.0 0

Seq Scan on countries txtph_c (cost=0.00..7.48 rows=248 width=6) (never executed)

122. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.48..7.48 rows=248 width=6) (never executed)

123. 0.000 0.000 ↓ 0.0 0

Seq Scan on countries numpage_c (cost=0.00..7.48 rows=248 width=6) (never executed)

124. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.48..7.48 rows=248 width=6) (never executed)

125. 0.000 0.000 ↓ 0.0 0

Seq Scan on countries voiceivr_c (cost=0.00..7.48 rows=248 width=6) (never executed)

Planning time : 48.739 ms
Execution time : 501.289 ms