explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MJb2

Settings
# exclusive inclusive rows x rows loops node
1. 43.892 141.773 ↑ 1.0 1 1

Aggregate (cost=1,535,237.29..1,535,237.30 rows=1 width=76) (actual time=141.773..141.773 rows=1 loops=1)

  • Output: sum((SubPlan 5)), sum((SubPlan 10)), sum((SubPlan 15)), sum((SubPlan 20)), sum((SubPlan 25)), sum((SubPlan 30)), sum((SubPlan 35)), sum((SubPlan 40)), sum((SubPlan 45)), sum((SubPlan 50)), sum((SubPlan 55)), sum((SubPlan 60)), sum((SubPlan 65)), (...)
  • Buffers: shared hit=53630 read=50
2. 0.293 12.121 ↑ 2.0 64 1

Nested Loop Semi Join (cost=1.66..2,291.57 rows=130 width=76) (actual time=1.176..12.121 rows=64 loops=1)

  • Output: "*SELECT* 1".owneruserid, "*SELECT* 1".timesheetstartdate, "*SELECT* 1".timesheetenddate, "*SELECT* 1".totalovertimehours, "*SELECT* 1".totalregularhours, "*SELECT* 1".totalbreakhours, "*SELECT* 1".totalworkinghours
  • Buffers: shared hit=1979 read=39
3. 0.034 3.764 ↑ 2.0 64 1

Append (cost=1.37..591.13 rows=130 width=92) (actual time=0.553..3.764 rows=64 loops=1)

  • Buffers: shared hit=1678 read=20
4. 0.055 3.723 ↑ 2.0 64 1

Subquery Scan on *SELECT* 1 (cost=1.37..589.69 rows=129 width=92) (actual time=0.553..3.723 rows=64 loops=1)

  • Output: "*SELECT* 1".owneruserid, "*SELECT* 1".timesheetstartdate, "*SELECT* 1".timesheetenddate, "*SELECT* 1".totalovertimehours, "*SELECT* 1".totalregularhours, "*SELECT* 1".totalbreakhours, "*SELECT* 1".totalworkinghours, "*SELECT* 1 (...)
  • Buffers: shared hit=1677 read=20
5. 0.167 3.668 ↑ 2.0 64 1

Hash Anti Join (cost=1.37..588.40 rows=129 width=92) (actual time=0.551..3.668 rows=64 loops=1)

  • Output: dm_timesheetlist_facts.timesheetid, NULL::text, dm_timesheetlist_facts.timesheetstartdate, dm_timesheetlist_facts.timesheetenddate, dm_timesheetlist_facts.owneruserid, NULL::text, NULL::text, NULL::text, NULL::integer, NUL (...)
  • Hash Cond: (dm_timesheetlist_facts.timesheetid = dm_timesheetlist_realtime_facts.timesheetid)
  • Buffers: shared hit=1677 read=20
6. 3.489 3.489 ↑ 2.0 64 1

Index Scan using ixdmtlfowneruserid on "1583482d05e64fd790f3e6abdce13f98".dm_timesheetlist_facts (cost=0.28..585.68 rows=129 width=92) (actual time=0.523..3.489 rows=64 loops=1)

  • Output: dm_timesheetlist_facts.timesheetid, dm_timesheetlist_facts.timesheetslug, dm_timesheetlist_facts.timesheetstartdate, dm_timesheetlist_facts.timesheetenddate, dm_timesheetlist_facts.owneruserid, dm_timesheetlist_facts (...)
  • Index Cond: (dm_timesheetlist_facts.owneruserid = ANY ('{45,46,72,242,47,193,176,175,201,75,208,257,36,48,186,171,240,163,79,191,38,42,78,150,230,233,212,88,89,206,199,204,200,205,253,197,177,50,166,167,168,229,169,164,157,2 (...)
  • Filter: ((dm_timesheetlist_facts.timesheetstartdate <= '2019-06-09'::date) AND (dm_timesheetlist_facts.timesheetenddate >= '2019-06-03'::date))
  • Rows Removed by Filter: 1741
  • Buffers: shared hit=1676 read=20
7. 0.006 0.012 ↑ 1.0 4 1

Hash (cost=1.04..1.04 rows=4 width=16) (actual time=0.012..0.012 rows=4 loops=1)

  • Output: dm_timesheetlist_realtime_facts.timesheetid
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=1
8. 0.006 0.006 ↑ 1.0 4 1

Seq Scan on "1583482d05e64fd790f3e6abdce13f98".dm_timesheetlist_realtime_facts (cost=0.00..1.04 rows=4 width=16) (actual time=0.004..0.006 rows=4 loops=1)

  • Output: dm_timesheetlist_realtime_facts.timesheetid
  • Buffers: shared hit=1
9. 0.000 0.007 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2 (cost=0.00..1.45 rows=1 width=92) (actual time=0.007..0.007 rows=0 loops=1)

  • Output: "*SELECT* 2".owneruserid, "*SELECT* 2".timesheetstartdate, "*SELECT* 2".timesheetenddate, "*SELECT* 2".totalovertimehours, "*SELECT* 2".totalregularhours, "*SELECT* 2".totalbreakhours, "*SELECT* 2".totalworkinghours, "*SELECT* 2 (...)
  • Buffers: shared hit=1
10. 0.007 0.007 ↓ 0.0 0 1

Seq Scan on "1583482d05e64fd790f3e6abdce13f98".dm_timesheetlist_realtime_facts dm_timesheetlist_realtime_facts_1 (cost=0.00..1.44 rows=1 width=92) (actual time=0.007..0.007 rows=0 loops=1)

  • Output: dm_timesheetlist_realtime_facts_1.timesheetid, NULL::text, dm_timesheetlist_realtime_facts_1.timesheetstartdate, dm_timesheetlist_realtime_facts_1.timesheetenddate, dm_timesheetlist_realtime_facts_1.owneruserid, NULL::text (...)
  • Filter: ((NOT dm_timesheetlist_realtime_facts_1.deleted) AND (dm_timesheetlist_realtime_facts_1.timesheetstartdate <= '2019-06-09'::date) AND (dm_timesheetlist_realtime_facts_1.timesheetenddate >= '2019-06-03'::date) AND (dm_times (...)
  • Rows Removed by Filter: 4
  • Buffers: shared hit=1
11. 7.872 8.064 ↑ 1.0 1 64

Index Scan using timesheet_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet6852 (cost=0.28..13.07 rows=1 width=16) (actual time=0.126..0.126 rows=1 loops=64)

  • Output: timesheet6852.id, timesheet6852.userid, timesheet6852.startdate, timesheet6852.enddate, timesheet6852.approvalstatus, timesheet6852.duedate, timesheet6852.autosubmitdatetimeutc, timesheet6852.lastautosubmitattemptdatetimeutc, timeshee (...)
  • Index Cond: (timesheet6852.id = "*SELECT* 1".timesheetid)
  • Filter: ((alternatives: SubPlan 2016 or hashed SubPlan 2017) OR (((alternatives: SubPlan 2018 or hashed SubPlan 2019) OR (alternatives: SubPlan 2020 or hashed SubPlan 2021)) AND (timesheet6852.userid <> 44)))
  • Buffers: shared hit=301 read=19
12.          

SubPlan (forIndex Scan)

13. 0.192 0.192 ↑ 1.0 1 64

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy6853 (cost=0.14..2.17 rows=1 width=0) (actual time=0.003..0.003 rows=1 loops=64)

  • Index Cond: ((userhierarchy6853.userid = timesheet6852.userid) AND (userhierarchy6853.supervisorid = 44) AND (userhierarchy6853.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy6853.enddate >= '2019-06-06'::date)
  • Buffers: shared hit=128
14. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy6853_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy6853_1.userid
  • Index Cond: (userhierarchy6853_1.supervisorid = 44)
  • Filter: ((userhierarchy6853_1.startdate <= '2019-06-06'::date) AND (userhierarchy6853_1.enddate >= '2019-06-06'::date))
15. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=3.17..5.70 rows=1 width=0) (never executed)

  • Hash Cond: (tsapprovalrequest6854.nodeid = timesheetapprovalnodes6855.id)
16. 0.000 0.000 ↓ 0.0 0

Seq Scan on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest6854 (cost=0.00..2.17 rows=91 width=16) (never executed)

  • Output: tsapprovalrequest6854.id, tsapprovalrequest6854.nodeid, tsapprovalrequest6854.effectivedateutc, tsapprovalrequest6854.remindersentutc, tsapprovalrequest6854.overduesentutc, tsapprovalrequest6854.waitingbatchsentutc, tsap (...)
  • Filter: (tsapprovalrequest6854.userid = 44)
17. 0.000 0.000 ↓ 0.0 0

Hash (cost=3.14..3.14 rows=2 width=16) (never executed)

  • Output: timesheetapprovalnodes6855.id
18. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes6855 (cost=0.14..3.14 rows=2 width=16) (never executed)

  • Output: timesheetapprovalnodes6855.id
  • Index Cond: (timesheetapprovalnodes6855.timesheetid = timesheet6852.id)
19. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=3.31..9.84 rows=91 width=16) (never executed)

  • Output: timesheetapprovalnodes6855_1.timesheetid
  • Hash Cond: (timesheetapprovalnodes6855_1.id = tsapprovalrequest6854_1.nodeid)
20. 0.000 0.000 ↓ 0.0 0

Seq Scan on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes6855_1 (cost=0.00..4.90 rows=190 width=32) (never executed)

  • Output: timesheetapprovalnodes6855_1.id, timesheetapprovalnodes6855_1.timesheetid, timesheetapprovalnodes6855_1.isapproved, timesheetapprovalnodes6855_1.approverrole, timesheetapprovalnodes6855_1.userid, timesheetapprovalnodes68 (...)
21. 0.000 0.000 ↓ 0.0 0

Hash (cost=2.17..2.17 rows=91 width=16) (never executed)

  • Output: tsapprovalrequest6854_1.nodeid
22. 0.000 0.000 ↓ 0.0 0

Seq Scan on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest6854_1 (cost=0.00..2.17 rows=91 width=16) (never executed)

  • Output: tsapprovalrequest6854_1.nodeid
  • Filter: (tsapprovalrequest6854_1.userid = 44)
23. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory6856 (cost=0.28..4.33 rows=1 width=0) (never executed)

  • Index Cond: (timesheetapprovalhistory6856.timesheetid = timesheet6852.id)
  • Filter: (timesheetapprovalhistory6856.userid = 44)
24. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahuserid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory6856_1 (cost=0.28..17.26 rows=82 width=16) (never executed)

  • Output: timesheetapprovalhistory6856_1.timesheetid
  • Index Cond: (timesheetapprovalhistory6856_1.userid = 44)
25.          

SubPlan (forAggregate)

26. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem0.payamount)
  • Buffers: shared hit=129
27. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem0.payamount
  • Buffers: shared hit=129
28. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem0 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem0.id, payrollitem0.userid, payrollitem0.paycodeid, payrollitem0.entrydate, payrollitem0.duration, payrollitem0.payamount, payrollitem0.paycurrencyid, payrollitem0.originuri, payrollitem0.payableitemid
  • Index Cond: ((payrollitem0.userid = "*SELECT* 1".owneruserid) AND (payrollitem0.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem0.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem0.paycurrencyid = 1)
  • Buffers: shared hit=129
29. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem2 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem2.id, payrollitem2.userid, payrollitem2.paycodeid, payrollitem2.entrydate, payrollitem2.duration, payrollitem2.payamount, payrollitem2.paycurrencyid, payrollitem2.originuri, payrollitem2.payableitemid
  • Index Cond: (payrollitem2.id = payrollitem0.id)
  • Filter: ((alternatives: SubPlan 1 or hashed SubPlan 2) OR (SubPlan 3) OR (SubPlan 4))
30.          

SubPlan (forIndex Scan)

31. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy3 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy3.userid = payrollitem2.userid) AND (userhierarchy3.supervisorid = 44) AND (userhierarchy3.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy3.enddate >= '2019-06-06'::date)
32. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy3_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy3_1.userid
  • Index Cond: (userhierarchy3_1.supervisorid = 44)
  • Filter: ((userhierarchy3_1.startdate <= '2019-06-06'::date) AND (userhierarchy3_1.enddate >= '2019-06-06'::date))
33. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue4.uri)
34. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue4.uri, tsapprovalrequestkeyvalue4.parentid
35. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest7.id
36. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes6.id
37. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet5 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet5.id, timesheet5.userid, timesheet5.startdate, timesheet5.enddate, timesheet5.approvalstatus, timesheet5.duedate, timesheet5.autosubmitdatetimeutc, timesheet5.lastautosubmitattemptdatet (...)
  • Index Cond: ((timesheet5.userid = payrollitem2.userid) AND (timesheet5.startdate <= payrollitem2.entrydate) AND (timesheet5.enddate >= payrollitem2.entrydate))
38. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes6 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes6.id, timesheetapprovalnodes6.timesheetid, timesheetapprovalnodes6.isapproved, timesheetapprovalnodes6.approverrole, timesheetapprovalnodes6.userid, timesheetapprovalnodes6 (...)
  • Index Cond: (timesheetapprovalnodes6.timesheetid = timesheet5.id)
39. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest7 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest7.id, tsapprovalrequest7.nodeid, tsapprovalrequest7.effectivedateutc, tsapprovalrequest7.remindersentutc, tsapprovalrequest7.overduesentutc, tsapprovalrequest7.waitingbatchsentutc, ts (...)
  • Index Cond: ((tsapprovalrequest7.userid = 44) AND (tsapprovalrequest7.nodeid = timesheetapprovalnodes6.id))
40. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue4 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue4.id, tsapprovalrequestkeyvalue4.tsapprovalrequestid, tsapprovalrequestkeyvalue4.parentid, tsapprovalrequestkeyvalue4.index, tsapprovalrequestkeyvalue4.key, tsapprovalrequestkeyvalu (...)
  • Index Cond: (tsapprovalrequestkeyvalue4.tsapprovalrequestid = tsapprovalrequest7.id)
  • Filter: (upper(tsapprovalrequestkeyvalue4.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
41. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue8 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue8.id, tsapprovalrequestkeyvalue8.tsapprovalrequestid, tsapprovalrequestkeyvalue8.parentid, tsapprovalrequestkeyvalue8.index, tsapprovalrequestkeyvalue8.key, tsapprovalrequestkeyvalue8.uri (...)
  • Index Cond: (tsapprovalrequestkeyvalue8.id = tsapprovalrequestkeyvalue4.parentid)
  • Filter: (tsapprovalrequestkeyvalue8.parentid IS NULL)
42. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(esheetapprovalhistorykeyvalue9.uri)
43. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue17.id
44. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue16.id
45. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue15.id
46. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue14.id
47. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue13.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue13 (cost=0.29..1.31 rows=1 width=32) (...)
48. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue12.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue12 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue13.id, sheetapprovalhistorykeyvalue13.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue13.parentid, sheetapprovalhistorykeyvalue13.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue13.id = sheetapprovalhistorykeyvalue12.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue13.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
49. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory11.id
  • Output: sheetapprovalhistorykeyvalue12.id, sheetapprovalhistorykeyvalue12.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue12.parentid, sheetapprovalhistorykeyvalue12.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue12.timesheetapprovalhistoryid = timesheetapprovalhistory11.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue12.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue12 (...)
50. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet10 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet10.id, timesheet10.userid, timesheet10.startdate, timesheet10.enddate, timesheet10.approvalstatus, timesheet10.duedate, timesheet10.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet10.userid = payrollitem2.userid) AND (timesheet10.startdate <= payrollitem2.entrydate) AND (timesheet10.enddate >= payrollitem2.entrydate))
51. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory11 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory11.id, timesheetapprovalhistory11.serialnumber, timesheetapprovalhistory11.timesheetid, timesheetapprovalhistory11.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory11.timesheetid = timesheet10.id)
  • Filter: (timesheetapprovalhistory11.userid = 44)
52. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue14 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue14.id, sheetapprovalhistorykeyvalue14.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue14.parentid, sheetapprovalhistorykeyvalue14.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue14.parentid = sheetapprovalhistorykeyvalue13.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue14.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
53. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue15 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue15.id, sheetapprovalhistorykeyvalue15.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue15.parentid, sheetapprovalhistorykeyvalue15.index, sheetapprovalhistoryk (...)
  • Index Cond: (sheetapprovalhistorykeyvalue15.parentid = sheetapprovalhistorykeyvalue14.id)
54. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue16 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue16.id, sheetapprovalhistorykeyvalue16.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue16.parentid, sheetapprovalhistorykeyvalue16.index, sheetapprovalhistorykeyvalu (...)
  • Index Cond: (sheetapprovalhistorykeyvalue16.parentid = sheetapprovalhistorykeyvalue15.id)
  • Filter: (upper(sheetapprovalhistorykeyvalue16.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
55. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue17 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue17.id, sheetapprovalhistorykeyvalue17.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue17.parentid, sheetapprovalhistorykeyvalue17.index, sheetapprovalhistorykeyvalue17.ke (...)
  • Index Cond: (sheetapprovalhistorykeyvalue17.parentid = sheetapprovalhistorykeyvalue16.id)
56. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue esheetapprovalhistorykeyvalue9 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: esheetapprovalhistorykeyvalue9.id, esheetapprovalhistorykeyvalue9.timesheetapprovalhistoryid, esheetapprovalhistorykeyvalue9.parentid, esheetapprovalhistorykeyvalue9.index, esheetapprovalhistorykeyvalue9.key, esh (...)
  • Index Cond: (esheetapprovalhistorykeyvalue9.parentid = sheetapprovalhistorykeyvalue17.id)
57. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem18.payamount)
  • Buffers: shared hit=129
58. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem18.payamount
  • Buffers: shared hit=129
59. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem18 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem18.id, payrollitem18.userid, payrollitem18.paycodeid, payrollitem18.entrydate, payrollitem18.duration, payrollitem18.payamount, payrollitem18.paycurrencyid, payrollitem18.originuri, payrollitem18.payableitemid
  • Index Cond: ((payrollitem18.userid = "*SELECT* 1".owneruserid) AND (payrollitem18.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem18.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem18.paycurrencyid = 2)
  • Buffers: shared hit=129
60. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem19 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem19.id, payrollitem19.userid, payrollitem19.paycodeid, payrollitem19.entrydate, payrollitem19.duration, payrollitem19.payamount, payrollitem19.paycurrencyid, payrollitem19.originuri, payrollitem19.payableitemid
  • Index Cond: (payrollitem19.id = payrollitem18.id)
  • Filter: ((alternatives: SubPlan 6 or hashed SubPlan 7) OR (SubPlan 8) OR (SubPlan 9))
61.          

SubPlan (forIndex Scan)

62. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy20 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy20.userid = payrollitem19.userid) AND (userhierarchy20.supervisorid = 44) AND (userhierarchy20.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy20.enddate >= '2019-06-06'::date)
63. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy20_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy20_1.userid
  • Index Cond: (userhierarchy20_1.supervisorid = 44)
  • Filter: ((userhierarchy20_1.startdate <= '2019-06-06'::date) AND (userhierarchy20_1.enddate >= '2019-06-06'::date))
64. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue21.uri)
65. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue21.uri, tsapprovalrequestkeyvalue21.parentid
66. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest24.id
67. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes23.id
68. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet22 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet22.id, timesheet22.userid, timesheet22.startdate, timesheet22.enddate, timesheet22.approvalstatus, timesheet22.duedate, timesheet22.autosubmitdatetimeutc, timesheet22.lastautosubmitatte (...)
  • Index Cond: ((timesheet22.userid = payrollitem19.userid) AND (timesheet22.startdate <= payrollitem19.entrydate) AND (timesheet22.enddate >= payrollitem19.entrydate))
69. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes23 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes23.id, timesheetapprovalnodes23.timesheetid, timesheetapprovalnodes23.isapproved, timesheetapprovalnodes23.approverrole, timesheetapprovalnodes23.userid, timesheetapprovaln (...)
  • Index Cond: (timesheetapprovalnodes23.timesheetid = timesheet22.id)
70. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest24 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest24.id, tsapprovalrequest24.nodeid, tsapprovalrequest24.effectivedateutc, tsapprovalrequest24.remindersentutc, tsapprovalrequest24.overduesentutc, tsapprovalrequest24.waitingbatchsentu (...)
  • Index Cond: ((tsapprovalrequest24.userid = 44) AND (tsapprovalrequest24.nodeid = timesheetapprovalnodes23.id))
71. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue21 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue21.id, tsapprovalrequestkeyvalue21.tsapprovalrequestid, tsapprovalrequestkeyvalue21.parentid, tsapprovalrequestkeyvalue21.index, tsapprovalrequestkeyvalue21.key, tsapprovalrequestke (...)
  • Index Cond: (tsapprovalrequestkeyvalue21.tsapprovalrequestid = tsapprovalrequest24.id)
  • Filter: (upper(tsapprovalrequestkeyvalue21.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
72. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue25 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue25.id, tsapprovalrequestkeyvalue25.tsapprovalrequestid, tsapprovalrequestkeyvalue25.parentid, tsapprovalrequestkeyvalue25.index, tsapprovalrequestkeyvalue25.key, tsapprovalrequestkeyvalue (...)
  • Index Cond: (tsapprovalrequestkeyvalue25.id = tsapprovalrequestkeyvalue21.parentid)
  • Filter: (tsapprovalrequestkeyvalue25.parentid IS NULL)
73. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(sheetapprovalhistorykeyvalue26.uri)
74. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue34.id
75. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue33.id
76. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue32.id
77. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue31.id
78. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue30.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue30 (cost=0.29..1.31 rows=1 width=32) (...)
79. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue29.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue29 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue30.id, sheetapprovalhistorykeyvalue30.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue30.parentid, sheetapprovalhistorykeyvalue30.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue30.id = sheetapprovalhistorykeyvalue29.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue30.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
80. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory28.id
  • Output: sheetapprovalhistorykeyvalue29.id, sheetapprovalhistorykeyvalue29.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue29.parentid, sheetapprovalhistorykeyvalue29.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue29.timesheetapprovalhistoryid = timesheetapprovalhistory28.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue29.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue29 (...)
81. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet27 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet27.id, timesheet27.userid, timesheet27.startdate, timesheet27.enddate, timesheet27.approvalstatus, timesheet27.duedate, timesheet27.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet27.userid = payrollitem19.userid) AND (timesheet27.startdate <= payrollitem19.entrydate) AND (timesheet27.enddate >= payrollitem19.entrydate))
82. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory28 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory28.id, timesheetapprovalhistory28.serialnumber, timesheetapprovalhistory28.timesheetid, timesheetapprovalhistory28.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory28.timesheetid = timesheet27.id)
  • Filter: (timesheetapprovalhistory28.userid = 44)
83. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue31 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue31.id, sheetapprovalhistorykeyvalue31.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue31.parentid, sheetapprovalhistorykeyvalue31.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue31.parentid = sheetapprovalhistorykeyvalue30.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue31.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
84. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue32 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue32.id, sheetapprovalhistorykeyvalue32.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue32.parentid, sheetapprovalhistorykeyvalue32.index, sheetapprovalhistoryk (...)
  • Index Cond: (sheetapprovalhistorykeyvalue32.parentid = sheetapprovalhistorykeyvalue31.id)
85. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue33 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue33.id, sheetapprovalhistorykeyvalue33.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue33.parentid, sheetapprovalhistorykeyvalue33.index, sheetapprovalhistorykeyvalu (...)
  • Index Cond: (sheetapprovalhistorykeyvalue33.parentid = sheetapprovalhistorykeyvalue32.id)
  • Filter: (upper(sheetapprovalhistorykeyvalue33.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
86. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue34 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue34.id, sheetapprovalhistorykeyvalue34.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue34.parentid, sheetapprovalhistorykeyvalue34.index, sheetapprovalhistorykeyvalue34.ke (...)
  • Index Cond: (sheetapprovalhistorykeyvalue34.parentid = sheetapprovalhistorykeyvalue33.id)
87. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue26 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: sheetapprovalhistorykeyvalue26.id, sheetapprovalhistorykeyvalue26.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue26.parentid, sheetapprovalhistorykeyvalue26.index, sheetapprovalhistorykeyvalue26.key, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue26.parentid = sheetapprovalhistorykeyvalue34.id)
88. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem35.payamount)
  • Buffers: shared hit=129
89. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem35.payamount
  • Buffers: shared hit=129
90. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem35 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem35.id, payrollitem35.userid, payrollitem35.paycodeid, payrollitem35.entrydate, payrollitem35.duration, payrollitem35.payamount, payrollitem35.paycurrencyid, payrollitem35.originuri, payrollitem35.payableitemid
  • Index Cond: ((payrollitem35.userid = "*SELECT* 1".owneruserid) AND (payrollitem35.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem35.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem35.paycurrencyid = 3)
  • Buffers: shared hit=129
91. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem36 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem36.id, payrollitem36.userid, payrollitem36.paycodeid, payrollitem36.entrydate, payrollitem36.duration, payrollitem36.payamount, payrollitem36.paycurrencyid, payrollitem36.originuri, payrollitem36.payableitemid
  • Index Cond: (payrollitem36.id = payrollitem35.id)
  • Filter: ((alternatives: SubPlan 11 or hashed SubPlan 12) OR (SubPlan 13) OR (SubPlan 14))
92.          

SubPlan (forIndex Scan)

93. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy37 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy37.userid = payrollitem36.userid) AND (userhierarchy37.supervisorid = 44) AND (userhierarchy37.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy37.enddate >= '2019-06-06'::date)
94. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy37_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy37_1.userid
  • Index Cond: (userhierarchy37_1.supervisorid = 44)
  • Filter: ((userhierarchy37_1.startdate <= '2019-06-06'::date) AND (userhierarchy37_1.enddate >= '2019-06-06'::date))
95. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue38.uri)
96. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue38.uri, tsapprovalrequestkeyvalue38.parentid
97. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest41.id
98. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes40.id
99. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet39 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet39.id, timesheet39.userid, timesheet39.startdate, timesheet39.enddate, timesheet39.approvalstatus, timesheet39.duedate, timesheet39.autosubmitdatetimeutc, timesheet39.lastautosubmitatte (...)
  • Index Cond: ((timesheet39.userid = payrollitem36.userid) AND (timesheet39.startdate <= payrollitem36.entrydate) AND (timesheet39.enddate >= payrollitem36.entrydate))
100. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes40 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes40.id, timesheetapprovalnodes40.timesheetid, timesheetapprovalnodes40.isapproved, timesheetapprovalnodes40.approverrole, timesheetapprovalnodes40.userid, timesheetapprovaln (...)
  • Index Cond: (timesheetapprovalnodes40.timesheetid = timesheet39.id)
101. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest41 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest41.id, tsapprovalrequest41.nodeid, tsapprovalrequest41.effectivedateutc, tsapprovalrequest41.remindersentutc, tsapprovalrequest41.overduesentutc, tsapprovalrequest41.waitingbatchsentu (...)
  • Index Cond: ((tsapprovalrequest41.userid = 44) AND (tsapprovalrequest41.nodeid = timesheetapprovalnodes40.id))
102. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue38 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue38.id, tsapprovalrequestkeyvalue38.tsapprovalrequestid, tsapprovalrequestkeyvalue38.parentid, tsapprovalrequestkeyvalue38.index, tsapprovalrequestkeyvalue38.key, tsapprovalrequestke (...)
  • Index Cond: (tsapprovalrequestkeyvalue38.tsapprovalrequestid = tsapprovalrequest41.id)
  • Filter: (upper(tsapprovalrequestkeyvalue38.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
103. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue42 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue42.id, tsapprovalrequestkeyvalue42.tsapprovalrequestid, tsapprovalrequestkeyvalue42.parentid, tsapprovalrequestkeyvalue42.index, tsapprovalrequestkeyvalue42.key, tsapprovalrequestkeyvalue (...)
  • Index Cond: (tsapprovalrequestkeyvalue42.id = tsapprovalrequestkeyvalue38.parentid)
  • Filter: (tsapprovalrequestkeyvalue42.parentid IS NULL)
104. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(sheetapprovalhistorykeyvalue43.uri)
105. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue51.id
106. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue50.id
107. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue49.id
108. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue48.id
109. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue47.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue47 (cost=0.29..1.31 rows=1 width=32) (...)
110. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue46.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue46 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue47.id, sheetapprovalhistorykeyvalue47.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue47.parentid, sheetapprovalhistorykeyvalue47.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue47.id = sheetapprovalhistorykeyvalue46.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue47.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
111. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory45.id
  • Output: sheetapprovalhistorykeyvalue46.id, sheetapprovalhistorykeyvalue46.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue46.parentid, sheetapprovalhistorykeyvalue46.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue46.timesheetapprovalhistoryid = timesheetapprovalhistory45.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue46.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue46 (...)
112. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet44 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet44.id, timesheet44.userid, timesheet44.startdate, timesheet44.enddate, timesheet44.approvalstatus, timesheet44.duedate, timesheet44.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet44.userid = payrollitem36.userid) AND (timesheet44.startdate <= payrollitem36.entrydate) AND (timesheet44.enddate >= payrollitem36.entrydate))
113. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory45 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory45.id, timesheetapprovalhistory45.serialnumber, timesheetapprovalhistory45.timesheetid, timesheetapprovalhistory45.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory45.timesheetid = timesheet44.id)
  • Filter: (timesheetapprovalhistory45.userid = 44)
114. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue48 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue48.id, sheetapprovalhistorykeyvalue48.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue48.parentid, sheetapprovalhistorykeyvalue48.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue48.parentid = sheetapprovalhistorykeyvalue47.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue48.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
115. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue49 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue49.id, sheetapprovalhistorykeyvalue49.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue49.parentid, sheetapprovalhistorykeyvalue49.index, sheetapprovalhistoryk (...)
  • Index Cond: (sheetapprovalhistorykeyvalue49.parentid = sheetapprovalhistorykeyvalue48.id)
116. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue50 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue50.id, sheetapprovalhistorykeyvalue50.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue50.parentid, sheetapprovalhistorykeyvalue50.index, sheetapprovalhistorykeyvalu (...)
  • Index Cond: (sheetapprovalhistorykeyvalue50.parentid = sheetapprovalhistorykeyvalue49.id)
  • Filter: (upper(sheetapprovalhistorykeyvalue50.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
117. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue51 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue51.id, sheetapprovalhistorykeyvalue51.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue51.parentid, sheetapprovalhistorykeyvalue51.index, sheetapprovalhistorykeyvalue51.ke (...)
  • Index Cond: (sheetapprovalhistorykeyvalue51.parentid = sheetapprovalhistorykeyvalue50.id)
118. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue43 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: sheetapprovalhistorykeyvalue43.id, sheetapprovalhistorykeyvalue43.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue43.parentid, sheetapprovalhistorykeyvalue43.index, sheetapprovalhistorykeyvalue43.key, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue43.parentid = sheetapprovalhistorykeyvalue51.id)
119. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem52.payamount)
  • Buffers: shared hit=129
120. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem52.payamount
  • Buffers: shared hit=129
121. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem52 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem52.id, payrollitem52.userid, payrollitem52.paycodeid, payrollitem52.entrydate, payrollitem52.duration, payrollitem52.payamount, payrollitem52.paycurrencyid, payrollitem52.originuri, payrollitem52.payableitemid
  • Index Cond: ((payrollitem52.userid = "*SELECT* 1".owneruserid) AND (payrollitem52.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem52.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem52.paycurrencyid = 4)
  • Buffers: shared hit=129
122. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem53 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem53.id, payrollitem53.userid, payrollitem53.paycodeid, payrollitem53.entrydate, payrollitem53.duration, payrollitem53.payamount, payrollitem53.paycurrencyid, payrollitem53.originuri, payrollitem53.payableitemid
  • Index Cond: (payrollitem53.id = payrollitem52.id)
  • Filter: ((alternatives: SubPlan 16 or hashed SubPlan 17) OR (SubPlan 18) OR (SubPlan 19))
123.          

SubPlan (forIndex Scan)

124. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy54 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy54.userid = payrollitem53.userid) AND (userhierarchy54.supervisorid = 44) AND (userhierarchy54.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy54.enddate >= '2019-06-06'::date)
125. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy54_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy54_1.userid
  • Index Cond: (userhierarchy54_1.supervisorid = 44)
  • Filter: ((userhierarchy54_1.startdate <= '2019-06-06'::date) AND (userhierarchy54_1.enddate >= '2019-06-06'::date))
126. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue55.uri)
127. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue55.uri, tsapprovalrequestkeyvalue55.parentid
128. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest58.id
129. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes57.id
130. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet56 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet56.id, timesheet56.userid, timesheet56.startdate, timesheet56.enddate, timesheet56.approvalstatus, timesheet56.duedate, timesheet56.autosubmitdatetimeutc, timesheet56.lastautosubmitatte (...)
  • Index Cond: ((timesheet56.userid = payrollitem53.userid) AND (timesheet56.startdate <= payrollitem53.entrydate) AND (timesheet56.enddate >= payrollitem53.entrydate))
131. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes57 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes57.id, timesheetapprovalnodes57.timesheetid, timesheetapprovalnodes57.isapproved, timesheetapprovalnodes57.approverrole, timesheetapprovalnodes57.userid, timesheetapprovaln (...)
  • Index Cond: (timesheetapprovalnodes57.timesheetid = timesheet56.id)
132. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest58 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest58.id, tsapprovalrequest58.nodeid, tsapprovalrequest58.effectivedateutc, tsapprovalrequest58.remindersentutc, tsapprovalrequest58.overduesentutc, tsapprovalrequest58.waitingbatchsentu (...)
  • Index Cond: ((tsapprovalrequest58.userid = 44) AND (tsapprovalrequest58.nodeid = timesheetapprovalnodes57.id))
133. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue55 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue55.id, tsapprovalrequestkeyvalue55.tsapprovalrequestid, tsapprovalrequestkeyvalue55.parentid, tsapprovalrequestkeyvalue55.index, tsapprovalrequestkeyvalue55.key, tsapprovalrequestke (...)
  • Index Cond: (tsapprovalrequestkeyvalue55.tsapprovalrequestid = tsapprovalrequest58.id)
  • Filter: (upper(tsapprovalrequestkeyvalue55.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
134. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue59 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue59.id, tsapprovalrequestkeyvalue59.tsapprovalrequestid, tsapprovalrequestkeyvalue59.parentid, tsapprovalrequestkeyvalue59.index, tsapprovalrequestkeyvalue59.key, tsapprovalrequestkeyvalue (...)
  • Index Cond: (tsapprovalrequestkeyvalue59.id = tsapprovalrequestkeyvalue55.parentid)
  • Filter: (tsapprovalrequestkeyvalue59.parentid IS NULL)
135. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(sheetapprovalhistorykeyvalue60.uri)
136. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue68.id
137. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue67.id
138. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue66.id
139. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue65.id
140. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue64.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue64 (cost=0.29..1.31 rows=1 width=32) (...)
141. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue63.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue63 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue64.id, sheetapprovalhistorykeyvalue64.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue64.parentid, sheetapprovalhistorykeyvalue64.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue64.id = sheetapprovalhistorykeyvalue63.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue64.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
142. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory62.id
  • Output: sheetapprovalhistorykeyvalue63.id, sheetapprovalhistorykeyvalue63.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue63.parentid, sheetapprovalhistorykeyvalue63.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue63.timesheetapprovalhistoryid = timesheetapprovalhistory62.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue63.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue63 (...)
143. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet61 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet61.id, timesheet61.userid, timesheet61.startdate, timesheet61.enddate, timesheet61.approvalstatus, timesheet61.duedate, timesheet61.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet61.userid = payrollitem53.userid) AND (timesheet61.startdate <= payrollitem53.entrydate) AND (timesheet61.enddate >= payrollitem53.entrydate))
144. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory62 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory62.id, timesheetapprovalhistory62.serialnumber, timesheetapprovalhistory62.timesheetid, timesheetapprovalhistory62.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory62.timesheetid = timesheet61.id)
  • Filter: (timesheetapprovalhistory62.userid = 44)
145. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue65 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue65.id, sheetapprovalhistorykeyvalue65.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue65.parentid, sheetapprovalhistorykeyvalue65.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue65.parentid = sheetapprovalhistorykeyvalue64.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue65.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
146. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue66 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue66.id, sheetapprovalhistorykeyvalue66.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue66.parentid, sheetapprovalhistorykeyvalue66.index, sheetapprovalhistoryk (...)
  • Index Cond: (sheetapprovalhistorykeyvalue66.parentid = sheetapprovalhistorykeyvalue65.id)
147. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue67 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue67.id, sheetapprovalhistorykeyvalue67.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue67.parentid, sheetapprovalhistorykeyvalue67.index, sheetapprovalhistorykeyvalu (...)
  • Index Cond: (sheetapprovalhistorykeyvalue67.parentid = sheetapprovalhistorykeyvalue66.id)
  • Filter: (upper(sheetapprovalhistorykeyvalue67.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
148. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue68 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue68.id, sheetapprovalhistorykeyvalue68.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue68.parentid, sheetapprovalhistorykeyvalue68.index, sheetapprovalhistorykeyvalue68.ke (...)
  • Index Cond: (sheetapprovalhistorykeyvalue68.parentid = sheetapprovalhistorykeyvalue67.id)
149. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue60 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: sheetapprovalhistorykeyvalue60.id, sheetapprovalhistorykeyvalue60.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue60.parentid, sheetapprovalhistorykeyvalue60.index, sheetapprovalhistorykeyvalue60.key, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue60.parentid = sheetapprovalhistorykeyvalue68.id)
150. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem69.payamount)
  • Buffers: shared hit=129
151. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem69.payamount
  • Buffers: shared hit=129
152. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem69 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem69.id, payrollitem69.userid, payrollitem69.paycodeid, payrollitem69.entrydate, payrollitem69.duration, payrollitem69.payamount, payrollitem69.paycurrencyid, payrollitem69.originuri, payrollitem69.payableitemid
  • Index Cond: ((payrollitem69.userid = "*SELECT* 1".owneruserid) AND (payrollitem69.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem69.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem69.paycurrencyid = 5)
  • Buffers: shared hit=129
153. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem70 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem70.id, payrollitem70.userid, payrollitem70.paycodeid, payrollitem70.entrydate, payrollitem70.duration, payrollitem70.payamount, payrollitem70.paycurrencyid, payrollitem70.originuri, payrollitem70.payableitemid
  • Index Cond: (payrollitem70.id = payrollitem69.id)
  • Filter: ((alternatives: SubPlan 21 or hashed SubPlan 22) OR (SubPlan 23) OR (SubPlan 24))
154.          

SubPlan (forIndex Scan)

155. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy71 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy71.userid = payrollitem70.userid) AND (userhierarchy71.supervisorid = 44) AND (userhierarchy71.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy71.enddate >= '2019-06-06'::date)
156. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy71_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy71_1.userid
  • Index Cond: (userhierarchy71_1.supervisorid = 44)
  • Filter: ((userhierarchy71_1.startdate <= '2019-06-06'::date) AND (userhierarchy71_1.enddate >= '2019-06-06'::date))
157. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue72.uri)
158. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue72.uri, tsapprovalrequestkeyvalue72.parentid
159. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest75.id
160. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes74.id
161. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet73 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet73.id, timesheet73.userid, timesheet73.startdate, timesheet73.enddate, timesheet73.approvalstatus, timesheet73.duedate, timesheet73.autosubmitdatetimeutc, timesheet73.lastautosubmitatte (...)
  • Index Cond: ((timesheet73.userid = payrollitem70.userid) AND (timesheet73.startdate <= payrollitem70.entrydate) AND (timesheet73.enddate >= payrollitem70.entrydate))
162. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes74 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes74.id, timesheetapprovalnodes74.timesheetid, timesheetapprovalnodes74.isapproved, timesheetapprovalnodes74.approverrole, timesheetapprovalnodes74.userid, timesheetapprovaln (...)
  • Index Cond: (timesheetapprovalnodes74.timesheetid = timesheet73.id)
163. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest75 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest75.id, tsapprovalrequest75.nodeid, tsapprovalrequest75.effectivedateutc, tsapprovalrequest75.remindersentutc, tsapprovalrequest75.overduesentutc, tsapprovalrequest75.waitingbatchsentu (...)
  • Index Cond: ((tsapprovalrequest75.userid = 44) AND (tsapprovalrequest75.nodeid = timesheetapprovalnodes74.id))
164. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue72 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue72.id, tsapprovalrequestkeyvalue72.tsapprovalrequestid, tsapprovalrequestkeyvalue72.parentid, tsapprovalrequestkeyvalue72.index, tsapprovalrequestkeyvalue72.key, tsapprovalrequestke (...)
  • Index Cond: (tsapprovalrequestkeyvalue72.tsapprovalrequestid = tsapprovalrequest75.id)
  • Filter: (upper(tsapprovalrequestkeyvalue72.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
165. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue76 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue76.id, tsapprovalrequestkeyvalue76.tsapprovalrequestid, tsapprovalrequestkeyvalue76.parentid, tsapprovalrequestkeyvalue76.index, tsapprovalrequestkeyvalue76.key, tsapprovalrequestkeyvalue (...)
  • Index Cond: (tsapprovalrequestkeyvalue76.id = tsapprovalrequestkeyvalue72.parentid)
  • Filter: (tsapprovalrequestkeyvalue76.parentid IS NULL)
166. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(sheetapprovalhistorykeyvalue77.uri)
167. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue85.id
168. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue84.id
169. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue83.id
170. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue82.id
171. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue81.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue81 (cost=0.29..1.31 rows=1 width=32) (...)
172. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue80.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue80 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue81.id, sheetapprovalhistorykeyvalue81.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue81.parentid, sheetapprovalhistorykeyvalue81.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue81.id = sheetapprovalhistorykeyvalue80.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue81.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
173. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory79.id
  • Output: sheetapprovalhistorykeyvalue80.id, sheetapprovalhistorykeyvalue80.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue80.parentid, sheetapprovalhistorykeyvalue80.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue80.timesheetapprovalhistoryid = timesheetapprovalhistory79.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue80.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue80 (...)
174. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet78 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet78.id, timesheet78.userid, timesheet78.startdate, timesheet78.enddate, timesheet78.approvalstatus, timesheet78.duedate, timesheet78.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet78.userid = payrollitem70.userid) AND (timesheet78.startdate <= payrollitem70.entrydate) AND (timesheet78.enddate >= payrollitem70.entrydate))
175. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory79 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory79.id, timesheetapprovalhistory79.serialnumber, timesheetapprovalhistory79.timesheetid, timesheetapprovalhistory79.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory79.timesheetid = timesheet78.id)
  • Filter: (timesheetapprovalhistory79.userid = 44)
176. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue82 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue82.id, sheetapprovalhistorykeyvalue82.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue82.parentid, sheetapprovalhistorykeyvalue82.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue82.parentid = sheetapprovalhistorykeyvalue81.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue82.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
177. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue83 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue83.id, sheetapprovalhistorykeyvalue83.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue83.parentid, sheetapprovalhistorykeyvalue83.index, sheetapprovalhistoryk (...)
  • Index Cond: (sheetapprovalhistorykeyvalue83.parentid = sheetapprovalhistorykeyvalue82.id)
178. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue84 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue84.id, sheetapprovalhistorykeyvalue84.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue84.parentid, sheetapprovalhistorykeyvalue84.index, sheetapprovalhistorykeyvalu (...)
  • Index Cond: (sheetapprovalhistorykeyvalue84.parentid = sheetapprovalhistorykeyvalue83.id)
  • Filter: (upper(sheetapprovalhistorykeyvalue84.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
179. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue85 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue85.id, sheetapprovalhistorykeyvalue85.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue85.parentid, sheetapprovalhistorykeyvalue85.index, sheetapprovalhistorykeyvalue85.ke (...)
  • Index Cond: (sheetapprovalhistorykeyvalue85.parentid = sheetapprovalhistorykeyvalue84.id)
180. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue77 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: sheetapprovalhistorykeyvalue77.id, sheetapprovalhistorykeyvalue77.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue77.parentid, sheetapprovalhistorykeyvalue77.index, sheetapprovalhistorykeyvalue77.key, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue77.parentid = sheetapprovalhistorykeyvalue85.id)
181. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem86.payamount)
  • Buffers: shared hit=129
182. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem86.payamount
  • Buffers: shared hit=129
183. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem86 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem86.id, payrollitem86.userid, payrollitem86.paycodeid, payrollitem86.entrydate, payrollitem86.duration, payrollitem86.payamount, payrollitem86.paycurrencyid, payrollitem86.originuri, payrollitem86.payableitemid
  • Index Cond: ((payrollitem86.userid = "*SELECT* 1".owneruserid) AND (payrollitem86.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem86.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem86.paycurrencyid = 6)
  • Buffers: shared hit=129
184. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem87 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem87.id, payrollitem87.userid, payrollitem87.paycodeid, payrollitem87.entrydate, payrollitem87.duration, payrollitem87.payamount, payrollitem87.paycurrencyid, payrollitem87.originuri, payrollitem87.payableitemid
  • Index Cond: (payrollitem87.id = payrollitem86.id)
  • Filter: ((alternatives: SubPlan 26 or hashed SubPlan 27) OR (SubPlan 28) OR (SubPlan 29))
185.          

SubPlan (forIndex Scan)

186. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy88 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy88.userid = payrollitem87.userid) AND (userhierarchy88.supervisorid = 44) AND (userhierarchy88.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy88.enddate >= '2019-06-06'::date)
187. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy88_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy88_1.userid
  • Index Cond: (userhierarchy88_1.supervisorid = 44)
  • Filter: ((userhierarchy88_1.startdate <= '2019-06-06'::date) AND (userhierarchy88_1.enddate >= '2019-06-06'::date))
188. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue89.uri)
189. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue89.uri, tsapprovalrequestkeyvalue89.parentid
190. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest92.id
191. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes91.id
192. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet90 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet90.id, timesheet90.userid, timesheet90.startdate, timesheet90.enddate, timesheet90.approvalstatus, timesheet90.duedate, timesheet90.autosubmitdatetimeutc, timesheet90.lastautosubmitatte (...)
  • Index Cond: ((timesheet90.userid = payrollitem87.userid) AND (timesheet90.startdate <= payrollitem87.entrydate) AND (timesheet90.enddate >= payrollitem87.entrydate))
193. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes91 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes91.id, timesheetapprovalnodes91.timesheetid, timesheetapprovalnodes91.isapproved, timesheetapprovalnodes91.approverrole, timesheetapprovalnodes91.userid, timesheetapprovaln (...)
  • Index Cond: (timesheetapprovalnodes91.timesheetid = timesheet90.id)
194. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest92 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest92.id, tsapprovalrequest92.nodeid, tsapprovalrequest92.effectivedateutc, tsapprovalrequest92.remindersentutc, tsapprovalrequest92.overduesentutc, tsapprovalrequest92.waitingbatchsentu (...)
  • Index Cond: ((tsapprovalrequest92.userid = 44) AND (tsapprovalrequest92.nodeid = timesheetapprovalnodes91.id))
195. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue89 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue89.id, tsapprovalrequestkeyvalue89.tsapprovalrequestid, tsapprovalrequestkeyvalue89.parentid, tsapprovalrequestkeyvalue89.index, tsapprovalrequestkeyvalue89.key, tsapprovalrequestke (...)
  • Index Cond: (tsapprovalrequestkeyvalue89.tsapprovalrequestid = tsapprovalrequest92.id)
  • Filter: (upper(tsapprovalrequestkeyvalue89.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
196. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue93 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue93.id, tsapprovalrequestkeyvalue93.tsapprovalrequestid, tsapprovalrequestkeyvalue93.parentid, tsapprovalrequestkeyvalue93.index, tsapprovalrequestkeyvalue93.key, tsapprovalrequestkeyvalue (...)
  • Index Cond: (tsapprovalrequestkeyvalue93.id = tsapprovalrequestkeyvalue89.parentid)
  • Filter: (tsapprovalrequestkeyvalue93.parentid IS NULL)
197. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(sheetapprovalhistorykeyvalue94.uri)
198. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue102.id
199. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue101.id
200. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue100.id
201. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue99.id
202. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue98.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue98 (cost=0.29..1.31 rows=1 width=32) (...)
203. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: sheetapprovalhistorykeyvalue97.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue97 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: sheetapprovalhistorykeyvalue98.id, sheetapprovalhistorykeyvalue98.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue98.parentid, sheetapprovalhistorykeyvalue98.index, sheetappr (...)
  • Index Cond: (sheetapprovalhistorykeyvalue98.id = sheetapprovalhistorykeyvalue97.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue98.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
204. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory96.id
  • Output: sheetapprovalhistorykeyvalue97.id, sheetapprovalhistorykeyvalue97.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue97.parentid, sheetapprovalhistorykeyvalue97.index, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue97.timesheetapprovalhistoryid = timesheetapprovalhistory96.id)
  • Filter: ((upper(sheetapprovalhistorykeyvalue97.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(sheetapprovalhistorykeyvalue97 (...)
205. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet95 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet95.id, timesheet95.userid, timesheet95.startdate, timesheet95.enddate, timesheet95.approvalstatus, timesheet95.duedate, timesheet95.autosubmitdatetimeutc, timesh (...)
  • Index Cond: ((timesheet95.userid = payrollitem87.userid) AND (timesheet95.startdate <= payrollitem87.entrydate) AND (timesheet95.enddate >= payrollitem87.entrydate))
206. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory96 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory96.id, timesheetapprovalhistory96.serialnumber, timesheetapprovalhistory96.timesheetid, timesheetapprovalhistory96.action, timesheetapprovalhistor (...)
  • Index Cond: (timesheetapprovalhistory96.timesheetid = timesheet95.id)
  • Filter: (timesheetapprovalhistory96.userid = 44)
207. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue99 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: sheetapprovalhistorykeyvalue99.id, sheetapprovalhistorykeyvalue99.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue99.parentid, sheetapprovalhistorykeyvalue99.index, sheetapprovalhi (...)
  • Index Cond: (sheetapprovalhistorykeyvalue99.parentid = sheetapprovalhistorykeyvalue98.parentid)
  • Filter: (upper(sheetapprovalhistorykeyvalue99.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
208. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue100 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue100.id, heetapprovalhistorykeyvalue100.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue100.parentid, heetapprovalhistorykeyvalue100.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue100.parentid = sheetapprovalhistorykeyvalue99.id)
209. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue101 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue101.id, heetapprovalhistorykeyvalue101.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue101.parentid, heetapprovalhistorykeyvalue101.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue101.parentid = heetapprovalhistorykeyvalue100.id)
  • Filter: (upper(heetapprovalhistorykeyvalue101.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
210. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue102 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue102.id, heetapprovalhistorykeyvalue102.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue102.parentid, heetapprovalhistorykeyvalue102.index, heetapprovalhistorykeyvalue102.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue102.parentid = heetapprovalhistorykeyvalue101.id)
211. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue sheetapprovalhistorykeyvalue94 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: sheetapprovalhistorykeyvalue94.id, sheetapprovalhistorykeyvalue94.timesheetapprovalhistoryid, sheetapprovalhistorykeyvalue94.parentid, sheetapprovalhistorykeyvalue94.index, sheetapprovalhistorykeyvalue94.key, she (...)
  • Index Cond: (sheetapprovalhistorykeyvalue94.parentid = heetapprovalhistorykeyvalue102.id)
212. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem103.payamount)
  • Buffers: shared hit=129
213. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem103.payamount
  • Buffers: shared hit=129
214. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem103 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem103.id, payrollitem103.userid, payrollitem103.paycodeid, payrollitem103.entrydate, payrollitem103.duration, payrollitem103.payamount, payrollitem103.paycurrencyid, payrollitem103.originuri, payrollitem103.payableite (...)
  • Index Cond: ((payrollitem103.userid = "*SELECT* 1".owneruserid) AND (payrollitem103.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem103.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem103.paycurrencyid = 7)
  • Buffers: shared hit=129
215. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem104 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem104.id, payrollitem104.userid, payrollitem104.paycodeid, payrollitem104.entrydate, payrollitem104.duration, payrollitem104.payamount, payrollitem104.paycurrencyid, payrollitem104.originuri, payrollitem104.payableite (...)
  • Index Cond: (payrollitem104.id = payrollitem103.id)
  • Filter: ((alternatives: SubPlan 31 or hashed SubPlan 32) OR (SubPlan 33) OR (SubPlan 34))
216.          

SubPlan (forIndex Scan)

217. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy105 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy105.userid = payrollitem104.userid) AND (userhierarchy105.supervisorid = 44) AND (userhierarchy105.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy105.enddate >= '2019-06-06'::date)
218. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy105_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy105_1.userid
  • Index Cond: (userhierarchy105_1.supervisorid = 44)
  • Filter: ((userhierarchy105_1.startdate <= '2019-06-06'::date) AND (userhierarchy105_1.enddate >= '2019-06-06'::date))
219. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue106.uri)
220. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue106.uri, tsapprovalrequestkeyvalue106.parentid
221. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest109.id
222. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes108.id
223. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet107 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet107.id, timesheet107.userid, timesheet107.startdate, timesheet107.enddate, timesheet107.approvalstatus, timesheet107.duedate, timesheet107.autosubmitdatetimeutc, timesheet107.lastautosu (...)
  • Index Cond: ((timesheet107.userid = payrollitem104.userid) AND (timesheet107.startdate <= payrollitem104.entrydate) AND (timesheet107.enddate >= payrollitem104.entrydate))
224. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes108 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes108.id, timesheetapprovalnodes108.timesheetid, timesheetapprovalnodes108.isapproved, timesheetapprovalnodes108.approverrole, timesheetapprovalnodes108.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes108.timesheetid = timesheet107.id)
225. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest109 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest109.id, tsapprovalrequest109.nodeid, tsapprovalrequest109.effectivedateutc, tsapprovalrequest109.remindersentutc, tsapprovalrequest109.overduesentutc, tsapprovalrequest109.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest109.userid = 44) AND (tsapprovalrequest109.nodeid = timesheetapprovalnodes108.id))
226. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue106 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue106.id, tsapprovalrequestkeyvalue106.tsapprovalrequestid, tsapprovalrequestkeyvalue106.parentid, tsapprovalrequestkeyvalue106.index, tsapprovalrequestkeyvalue106.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue106.tsapprovalrequestid = tsapprovalrequest109.id)
  • Filter: (upper(tsapprovalrequestkeyvalue106.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
227. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue110 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue110.id, tsapprovalrequestkeyvalue110.tsapprovalrequestid, tsapprovalrequestkeyvalue110.parentid, tsapprovalrequestkeyvalue110.index, tsapprovalrequestkeyvalue110.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue110.id = tsapprovalrequestkeyvalue106.parentid)
  • Filter: (tsapprovalrequestkeyvalue110.parentid IS NULL)
228. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue111.uri)
229. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue119.id
230. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue118.id
231. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue117.id
232. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue116.id
233. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue115.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue115 (cost=0.29..1.31 rows=1 width=32) (...)
234. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue114.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue114 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue115.id, heetapprovalhistorykeyvalue115.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue115.parentid, heetapprovalhistorykeyvalue115.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue115.id = heetapprovalhistorykeyvalue114.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue115.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
235. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory113.id
  • Output: heetapprovalhistorykeyvalue114.id, heetapprovalhistorykeyvalue114.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue114.parentid, heetapprovalhistorykeyvalue114.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue114.timesheetapprovalhistoryid = timesheetapprovalhistory113.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue114.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue114 (...)
236. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet112 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet112.id, timesheet112.userid, timesheet112.startdate, timesheet112.enddate, timesheet112.approvalstatus, timesheet112.duedate, timesheet112.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet112.userid = payrollitem104.userid) AND (timesheet112.startdate <= payrollitem104.entrydate) AND (timesheet112.enddate >= payrollitem104.entrydate))
237. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory113 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory113.id, timesheetapprovalhistory113.serialnumber, timesheetapprovalhistory113.timesheetid, timesheetapprovalhistory113.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory113.timesheetid = timesheet112.id)
  • Filter: (timesheetapprovalhistory113.userid = 44)
238. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue116 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue116.id, heetapprovalhistorykeyvalue116.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue116.parentid, heetapprovalhistorykeyvalue116.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue116.parentid = heetapprovalhistorykeyvalue115.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue116.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
239. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue117 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue117.id, heetapprovalhistorykeyvalue117.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue117.parentid, heetapprovalhistorykeyvalue117.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue117.parentid = heetapprovalhistorykeyvalue116.id)
240. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue118 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue118.id, heetapprovalhistorykeyvalue118.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue118.parentid, heetapprovalhistorykeyvalue118.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue118.parentid = heetapprovalhistorykeyvalue117.id)
  • Filter: (upper(heetapprovalhistorykeyvalue118.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
241. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue119 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue119.id, heetapprovalhistorykeyvalue119.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue119.parentid, heetapprovalhistorykeyvalue119.index, heetapprovalhistorykeyvalue119.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue119.parentid = heetapprovalhistorykeyvalue118.id)
242. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue111 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue111.id, heetapprovalhistorykeyvalue111.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue111.parentid, heetapprovalhistorykeyvalue111.index, heetapprovalhistorykeyvalue111.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue111.parentid = heetapprovalhistorykeyvalue119.id)
243. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem120.payamount)
  • Buffers: shared hit=129
244. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem120.payamount
  • Buffers: shared hit=129
245. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem120 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem120.id, payrollitem120.userid, payrollitem120.paycodeid, payrollitem120.entrydate, payrollitem120.duration, payrollitem120.payamount, payrollitem120.paycurrencyid, payrollitem120.originuri, payrollitem120.payableite (...)
  • Index Cond: ((payrollitem120.userid = "*SELECT* 1".owneruserid) AND (payrollitem120.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem120.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem120.paycurrencyid = 16)
  • Buffers: shared hit=129
246. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem121 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem121.id, payrollitem121.userid, payrollitem121.paycodeid, payrollitem121.entrydate, payrollitem121.duration, payrollitem121.payamount, payrollitem121.paycurrencyid, payrollitem121.originuri, payrollitem121.payableite (...)
  • Index Cond: (payrollitem121.id = payrollitem120.id)
  • Filter: ((alternatives: SubPlan 36 or hashed SubPlan 37) OR (SubPlan 38) OR (SubPlan 39))
247.          

SubPlan (forIndex Scan)

248. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy122 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy122.userid = payrollitem121.userid) AND (userhierarchy122.supervisorid = 44) AND (userhierarchy122.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy122.enddate >= '2019-06-06'::date)
249. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy122_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy122_1.userid
  • Index Cond: (userhierarchy122_1.supervisorid = 44)
  • Filter: ((userhierarchy122_1.startdate <= '2019-06-06'::date) AND (userhierarchy122_1.enddate >= '2019-06-06'::date))
250. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue123.uri)
251. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue123.uri, tsapprovalrequestkeyvalue123.parentid
252. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest126.id
253. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes125.id
254. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet124 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet124.id, timesheet124.userid, timesheet124.startdate, timesheet124.enddate, timesheet124.approvalstatus, timesheet124.duedate, timesheet124.autosubmitdatetimeutc, timesheet124.lastautosu (...)
  • Index Cond: ((timesheet124.userid = payrollitem121.userid) AND (timesheet124.startdate <= payrollitem121.entrydate) AND (timesheet124.enddate >= payrollitem121.entrydate))
255. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes125 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes125.id, timesheetapprovalnodes125.timesheetid, timesheetapprovalnodes125.isapproved, timesheetapprovalnodes125.approverrole, timesheetapprovalnodes125.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes125.timesheetid = timesheet124.id)
256. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest126 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest126.id, tsapprovalrequest126.nodeid, tsapprovalrequest126.effectivedateutc, tsapprovalrequest126.remindersentutc, tsapprovalrequest126.overduesentutc, tsapprovalrequest126.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest126.userid = 44) AND (tsapprovalrequest126.nodeid = timesheetapprovalnodes125.id))
257. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue123 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue123.id, tsapprovalrequestkeyvalue123.tsapprovalrequestid, tsapprovalrequestkeyvalue123.parentid, tsapprovalrequestkeyvalue123.index, tsapprovalrequestkeyvalue123.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue123.tsapprovalrequestid = tsapprovalrequest126.id)
  • Filter: (upper(tsapprovalrequestkeyvalue123.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
258. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue127 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue127.id, tsapprovalrequestkeyvalue127.tsapprovalrequestid, tsapprovalrequestkeyvalue127.parentid, tsapprovalrequestkeyvalue127.index, tsapprovalrequestkeyvalue127.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue127.id = tsapprovalrequestkeyvalue123.parentid)
  • Filter: (tsapprovalrequestkeyvalue127.parentid IS NULL)
259. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue128.uri)
260. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue136.id
261. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue135.id
262. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue134.id
263. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue133.id
264. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue132.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue132 (cost=0.29..1.31 rows=1 width=32) (...)
265. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue131.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue131 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue132.id, heetapprovalhistorykeyvalue132.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue132.parentid, heetapprovalhistorykeyvalue132.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue132.id = heetapprovalhistorykeyvalue131.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue132.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
266. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory130.id
  • Output: heetapprovalhistorykeyvalue131.id, heetapprovalhistorykeyvalue131.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue131.parentid, heetapprovalhistorykeyvalue131.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue131.timesheetapprovalhistoryid = timesheetapprovalhistory130.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue131.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue131 (...)
267. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet129 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet129.id, timesheet129.userid, timesheet129.startdate, timesheet129.enddate, timesheet129.approvalstatus, timesheet129.duedate, timesheet129.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet129.userid = payrollitem121.userid) AND (timesheet129.startdate <= payrollitem121.entrydate) AND (timesheet129.enddate >= payrollitem121.entrydate))
268. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory130 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory130.id, timesheetapprovalhistory130.serialnumber, timesheetapprovalhistory130.timesheetid, timesheetapprovalhistory130.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory130.timesheetid = timesheet129.id)
  • Filter: (timesheetapprovalhistory130.userid = 44)
269. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue133 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue133.id, heetapprovalhistorykeyvalue133.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue133.parentid, heetapprovalhistorykeyvalue133.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue133.parentid = heetapprovalhistorykeyvalue132.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue133.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
270. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue134 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue134.id, heetapprovalhistorykeyvalue134.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue134.parentid, heetapprovalhistorykeyvalue134.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue134.parentid = heetapprovalhistorykeyvalue133.id)
271. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue135 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue135.id, heetapprovalhistorykeyvalue135.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue135.parentid, heetapprovalhistorykeyvalue135.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue135.parentid = heetapprovalhistorykeyvalue134.id)
  • Filter: (upper(heetapprovalhistorykeyvalue135.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
272. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue136 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue136.id, heetapprovalhistorykeyvalue136.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue136.parentid, heetapprovalhistorykeyvalue136.index, heetapprovalhistorykeyvalue136.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue136.parentid = heetapprovalhistorykeyvalue135.id)
273. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue128 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue128.id, heetapprovalhistorykeyvalue128.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue128.parentid, heetapprovalhistorykeyvalue128.index, heetapprovalhistorykeyvalue128.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue128.parentid = heetapprovalhistorykeyvalue136.id)
274. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem137.payamount)
  • Buffers: shared hit=129
275. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem137.payamount
  • Buffers: shared hit=129
276. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem137 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem137.id, payrollitem137.userid, payrollitem137.paycodeid, payrollitem137.entrydate, payrollitem137.duration, payrollitem137.payamount, payrollitem137.paycurrencyid, payrollitem137.originuri, payrollitem137.payableite (...)
  • Index Cond: ((payrollitem137.userid = "*SELECT* 1".owneruserid) AND (payrollitem137.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem137.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem137.paycurrencyid = 17)
  • Buffers: shared hit=129
277. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem138 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem138.id, payrollitem138.userid, payrollitem138.paycodeid, payrollitem138.entrydate, payrollitem138.duration, payrollitem138.payamount, payrollitem138.paycurrencyid, payrollitem138.originuri, payrollitem138.payableite (...)
  • Index Cond: (payrollitem138.id = payrollitem137.id)
  • Filter: ((alternatives: SubPlan 41 or hashed SubPlan 42) OR (SubPlan 43) OR (SubPlan 44))
278.          

SubPlan (forIndex Scan)

279. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy139 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy139.userid = payrollitem138.userid) AND (userhierarchy139.supervisorid = 44) AND (userhierarchy139.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy139.enddate >= '2019-06-06'::date)
280. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy139_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy139_1.userid
  • Index Cond: (userhierarchy139_1.supervisorid = 44)
  • Filter: ((userhierarchy139_1.startdate <= '2019-06-06'::date) AND (userhierarchy139_1.enddate >= '2019-06-06'::date))
281. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue140.uri)
282. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue140.uri, tsapprovalrequestkeyvalue140.parentid
283. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest143.id
284. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes142.id
285. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet141 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet141.id, timesheet141.userid, timesheet141.startdate, timesheet141.enddate, timesheet141.approvalstatus, timesheet141.duedate, timesheet141.autosubmitdatetimeutc, timesheet141.lastautosu (...)
  • Index Cond: ((timesheet141.userid = payrollitem138.userid) AND (timesheet141.startdate <= payrollitem138.entrydate) AND (timesheet141.enddate >= payrollitem138.entrydate))
286. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes142 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes142.id, timesheetapprovalnodes142.timesheetid, timesheetapprovalnodes142.isapproved, timesheetapprovalnodes142.approverrole, timesheetapprovalnodes142.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes142.timesheetid = timesheet141.id)
287. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest143 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest143.id, tsapprovalrequest143.nodeid, tsapprovalrequest143.effectivedateutc, tsapprovalrequest143.remindersentutc, tsapprovalrequest143.overduesentutc, tsapprovalrequest143.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest143.userid = 44) AND (tsapprovalrequest143.nodeid = timesheetapprovalnodes142.id))
288. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue140 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue140.id, tsapprovalrequestkeyvalue140.tsapprovalrequestid, tsapprovalrequestkeyvalue140.parentid, tsapprovalrequestkeyvalue140.index, tsapprovalrequestkeyvalue140.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue140.tsapprovalrequestid = tsapprovalrequest143.id)
  • Filter: (upper(tsapprovalrequestkeyvalue140.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
289. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue144 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue144.id, tsapprovalrequestkeyvalue144.tsapprovalrequestid, tsapprovalrequestkeyvalue144.parentid, tsapprovalrequestkeyvalue144.index, tsapprovalrequestkeyvalue144.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue144.id = tsapprovalrequestkeyvalue140.parentid)
  • Filter: (tsapprovalrequestkeyvalue144.parentid IS NULL)
290. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue145.uri)
291. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue153.id
292. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue152.id
293. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue151.id
294. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue150.id
295. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue149.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue149 (cost=0.29..1.31 rows=1 width=32) (...)
296. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue148.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue148 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue149.id, heetapprovalhistorykeyvalue149.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue149.parentid, heetapprovalhistorykeyvalue149.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue149.id = heetapprovalhistorykeyvalue148.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue149.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
297. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory147.id
  • Output: heetapprovalhistorykeyvalue148.id, heetapprovalhistorykeyvalue148.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue148.parentid, heetapprovalhistorykeyvalue148.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue148.timesheetapprovalhistoryid = timesheetapprovalhistory147.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue148.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue148 (...)
298. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet146 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet146.id, timesheet146.userid, timesheet146.startdate, timesheet146.enddate, timesheet146.approvalstatus, timesheet146.duedate, timesheet146.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet146.userid = payrollitem138.userid) AND (timesheet146.startdate <= payrollitem138.entrydate) AND (timesheet146.enddate >= payrollitem138.entrydate))
299. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory147 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory147.id, timesheetapprovalhistory147.serialnumber, timesheetapprovalhistory147.timesheetid, timesheetapprovalhistory147.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory147.timesheetid = timesheet146.id)
  • Filter: (timesheetapprovalhistory147.userid = 44)
300. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue150 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue150.id, heetapprovalhistorykeyvalue150.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue150.parentid, heetapprovalhistorykeyvalue150.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue150.parentid = heetapprovalhistorykeyvalue149.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue150.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
301. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue151 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue151.id, heetapprovalhistorykeyvalue151.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue151.parentid, heetapprovalhistorykeyvalue151.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue151.parentid = heetapprovalhistorykeyvalue150.id)
302. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue152 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue152.id, heetapprovalhistorykeyvalue152.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue152.parentid, heetapprovalhistorykeyvalue152.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue152.parentid = heetapprovalhistorykeyvalue151.id)
  • Filter: (upper(heetapprovalhistorykeyvalue152.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
303. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue153 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue153.id, heetapprovalhistorykeyvalue153.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue153.parentid, heetapprovalhistorykeyvalue153.index, heetapprovalhistorykeyvalue153.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue153.parentid = heetapprovalhistorykeyvalue152.id)
304. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue145 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue145.id, heetapprovalhistorykeyvalue145.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue145.parentid, heetapprovalhistorykeyvalue145.index, heetapprovalhistorykeyvalue145.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue145.parentid = heetapprovalhistorykeyvalue153.id)
305. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem154.payamount)
  • Buffers: shared hit=129
306. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem154.payamount
  • Buffers: shared hit=129
307. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem154 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem154.id, payrollitem154.userid, payrollitem154.paycodeid, payrollitem154.entrydate, payrollitem154.duration, payrollitem154.payamount, payrollitem154.paycurrencyid, payrollitem154.originuri, payrollitem154.payableite (...)
  • Index Cond: ((payrollitem154.userid = "*SELECT* 1".owneruserid) AND (payrollitem154.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem154.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem154.paycurrencyid = 18)
  • Buffers: shared hit=129
308. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem155 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem155.id, payrollitem155.userid, payrollitem155.paycodeid, payrollitem155.entrydate, payrollitem155.duration, payrollitem155.payamount, payrollitem155.paycurrencyid, payrollitem155.originuri, payrollitem155.payableite (...)
  • Index Cond: (payrollitem155.id = payrollitem154.id)
  • Filter: ((alternatives: SubPlan 46 or hashed SubPlan 47) OR (SubPlan 48) OR (SubPlan 49))
309.          

SubPlan (forIndex Scan)

310. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy156 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy156.userid = payrollitem155.userid) AND (userhierarchy156.supervisorid = 44) AND (userhierarchy156.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy156.enddate >= '2019-06-06'::date)
311. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy156_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy156_1.userid
  • Index Cond: (userhierarchy156_1.supervisorid = 44)
  • Filter: ((userhierarchy156_1.startdate <= '2019-06-06'::date) AND (userhierarchy156_1.enddate >= '2019-06-06'::date))
312. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue157.uri)
313. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue157.uri, tsapprovalrequestkeyvalue157.parentid
314. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest160.id
315. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes159.id
316. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet158 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet158.id, timesheet158.userid, timesheet158.startdate, timesheet158.enddate, timesheet158.approvalstatus, timesheet158.duedate, timesheet158.autosubmitdatetimeutc, timesheet158.lastautosu (...)
  • Index Cond: ((timesheet158.userid = payrollitem155.userid) AND (timesheet158.startdate <= payrollitem155.entrydate) AND (timesheet158.enddate >= payrollitem155.entrydate))
317. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes159 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes159.id, timesheetapprovalnodes159.timesheetid, timesheetapprovalnodes159.isapproved, timesheetapprovalnodes159.approverrole, timesheetapprovalnodes159.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes159.timesheetid = timesheet158.id)
318. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest160 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest160.id, tsapprovalrequest160.nodeid, tsapprovalrequest160.effectivedateutc, tsapprovalrequest160.remindersentutc, tsapprovalrequest160.overduesentutc, tsapprovalrequest160.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest160.userid = 44) AND (tsapprovalrequest160.nodeid = timesheetapprovalnodes159.id))
319. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue157 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue157.id, tsapprovalrequestkeyvalue157.tsapprovalrequestid, tsapprovalrequestkeyvalue157.parentid, tsapprovalrequestkeyvalue157.index, tsapprovalrequestkeyvalue157.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue157.tsapprovalrequestid = tsapprovalrequest160.id)
  • Filter: (upper(tsapprovalrequestkeyvalue157.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
320. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue161 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue161.id, tsapprovalrequestkeyvalue161.tsapprovalrequestid, tsapprovalrequestkeyvalue161.parentid, tsapprovalrequestkeyvalue161.index, tsapprovalrequestkeyvalue161.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue161.id = tsapprovalrequestkeyvalue157.parentid)
  • Filter: (tsapprovalrequestkeyvalue161.parentid IS NULL)
321. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue162.uri)
322. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue170.id
323. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue169.id
324. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue168.id
325. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue167.id
326. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue166.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue166 (cost=0.29..1.31 rows=1 width=32) (...)
327. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue165.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue165 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue166.id, heetapprovalhistorykeyvalue166.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue166.parentid, heetapprovalhistorykeyvalue166.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue166.id = heetapprovalhistorykeyvalue165.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue166.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
328. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory164.id
  • Output: heetapprovalhistorykeyvalue165.id, heetapprovalhistorykeyvalue165.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue165.parentid, heetapprovalhistorykeyvalue165.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue165.timesheetapprovalhistoryid = timesheetapprovalhistory164.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue165.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue165 (...)
329. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet163 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet163.id, timesheet163.userid, timesheet163.startdate, timesheet163.enddate, timesheet163.approvalstatus, timesheet163.duedate, timesheet163.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet163.userid = payrollitem155.userid) AND (timesheet163.startdate <= payrollitem155.entrydate) AND (timesheet163.enddate >= payrollitem155.entrydate))
330. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory164 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory164.id, timesheetapprovalhistory164.serialnumber, timesheetapprovalhistory164.timesheetid, timesheetapprovalhistory164.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory164.timesheetid = timesheet163.id)
  • Filter: (timesheetapprovalhistory164.userid = 44)
331. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue167 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue167.id, heetapprovalhistorykeyvalue167.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue167.parentid, heetapprovalhistorykeyvalue167.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue167.parentid = heetapprovalhistorykeyvalue166.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue167.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
332. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue168 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue168.id, heetapprovalhistorykeyvalue168.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue168.parentid, heetapprovalhistorykeyvalue168.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue168.parentid = heetapprovalhistorykeyvalue167.id)
333. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue169 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue169.id, heetapprovalhistorykeyvalue169.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue169.parentid, heetapprovalhistorykeyvalue169.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue169.parentid = heetapprovalhistorykeyvalue168.id)
  • Filter: (upper(heetapprovalhistorykeyvalue169.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
334. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue170 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue170.id, heetapprovalhistorykeyvalue170.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue170.parentid, heetapprovalhistorykeyvalue170.index, heetapprovalhistorykeyvalue170.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue170.parentid = heetapprovalhistorykeyvalue169.id)
335. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue162 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue162.id, heetapprovalhistorykeyvalue162.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue162.parentid, heetapprovalhistorykeyvalue162.index, heetapprovalhistorykeyvalue162.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue162.parentid = heetapprovalhistorykeyvalue170.id)
336. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem171.payamount)
  • Buffers: shared hit=129
337. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem171.payamount
  • Buffers: shared hit=129
338. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem171 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem171.id, payrollitem171.userid, payrollitem171.paycodeid, payrollitem171.entrydate, payrollitem171.duration, payrollitem171.payamount, payrollitem171.paycurrencyid, payrollitem171.originuri, payrollitem171.payableite (...)
  • Index Cond: ((payrollitem171.userid = "*SELECT* 1".owneruserid) AND (payrollitem171.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem171.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem171.paycurrencyid = 19)
  • Buffers: shared hit=129
339. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem172 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem172.id, payrollitem172.userid, payrollitem172.paycodeid, payrollitem172.entrydate, payrollitem172.duration, payrollitem172.payamount, payrollitem172.paycurrencyid, payrollitem172.originuri, payrollitem172.payableite (...)
  • Index Cond: (payrollitem172.id = payrollitem171.id)
  • Filter: ((alternatives: SubPlan 51 or hashed SubPlan 52) OR (SubPlan 53) OR (SubPlan 54))
340.          

SubPlan (forIndex Scan)

341. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy173 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy173.userid = payrollitem172.userid) AND (userhierarchy173.supervisorid = 44) AND (userhierarchy173.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy173.enddate >= '2019-06-06'::date)
342. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy173_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy173_1.userid
  • Index Cond: (userhierarchy173_1.supervisorid = 44)
  • Filter: ((userhierarchy173_1.startdate <= '2019-06-06'::date) AND (userhierarchy173_1.enddate >= '2019-06-06'::date))
343. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue174.uri)
344. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue174.uri, tsapprovalrequestkeyvalue174.parentid
345. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest177.id
346. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes176.id
347. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet175 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet175.id, timesheet175.userid, timesheet175.startdate, timesheet175.enddate, timesheet175.approvalstatus, timesheet175.duedate, timesheet175.autosubmitdatetimeutc, timesheet175.lastautosu (...)
  • Index Cond: ((timesheet175.userid = payrollitem172.userid) AND (timesheet175.startdate <= payrollitem172.entrydate) AND (timesheet175.enddate >= payrollitem172.entrydate))
348. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes176 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes176.id, timesheetapprovalnodes176.timesheetid, timesheetapprovalnodes176.isapproved, timesheetapprovalnodes176.approverrole, timesheetapprovalnodes176.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes176.timesheetid = timesheet175.id)
349. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest177 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest177.id, tsapprovalrequest177.nodeid, tsapprovalrequest177.effectivedateutc, tsapprovalrequest177.remindersentutc, tsapprovalrequest177.overduesentutc, tsapprovalrequest177.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest177.userid = 44) AND (tsapprovalrequest177.nodeid = timesheetapprovalnodes176.id))
350. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue174 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue174.id, tsapprovalrequestkeyvalue174.tsapprovalrequestid, tsapprovalrequestkeyvalue174.parentid, tsapprovalrequestkeyvalue174.index, tsapprovalrequestkeyvalue174.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue174.tsapprovalrequestid = tsapprovalrequest177.id)
  • Filter: (upper(tsapprovalrequestkeyvalue174.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
351. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue178 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue178.id, tsapprovalrequestkeyvalue178.tsapprovalrequestid, tsapprovalrequestkeyvalue178.parentid, tsapprovalrequestkeyvalue178.index, tsapprovalrequestkeyvalue178.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue178.id = tsapprovalrequestkeyvalue174.parentid)
  • Filter: (tsapprovalrequestkeyvalue178.parentid IS NULL)
352. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue179.uri)
353. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue187.id
354. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue186.id
355. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue185.id
356. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue184.id
357. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue183.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue183 (cost=0.29..1.31 rows=1 width=32) (...)
358. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue182.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue182 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue183.id, heetapprovalhistorykeyvalue183.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue183.parentid, heetapprovalhistorykeyvalue183.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue183.id = heetapprovalhistorykeyvalue182.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue183.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
359. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory181.id
  • Output: heetapprovalhistorykeyvalue182.id, heetapprovalhistorykeyvalue182.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue182.parentid, heetapprovalhistorykeyvalue182.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue182.timesheetapprovalhistoryid = timesheetapprovalhistory181.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue182.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue182 (...)
360. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet180 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet180.id, timesheet180.userid, timesheet180.startdate, timesheet180.enddate, timesheet180.approvalstatus, timesheet180.duedate, timesheet180.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet180.userid = payrollitem172.userid) AND (timesheet180.startdate <= payrollitem172.entrydate) AND (timesheet180.enddate >= payrollitem172.entrydate))
361. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory181 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory181.id, timesheetapprovalhistory181.serialnumber, timesheetapprovalhistory181.timesheetid, timesheetapprovalhistory181.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory181.timesheetid = timesheet180.id)
  • Filter: (timesheetapprovalhistory181.userid = 44)
362. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue184 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue184.id, heetapprovalhistorykeyvalue184.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue184.parentid, heetapprovalhistorykeyvalue184.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue184.parentid = heetapprovalhistorykeyvalue183.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue184.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
363. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue185 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue185.id, heetapprovalhistorykeyvalue185.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue185.parentid, heetapprovalhistorykeyvalue185.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue185.parentid = heetapprovalhistorykeyvalue184.id)
364. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue186 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue186.id, heetapprovalhistorykeyvalue186.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue186.parentid, heetapprovalhistorykeyvalue186.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue186.parentid = heetapprovalhistorykeyvalue185.id)
  • Filter: (upper(heetapprovalhistorykeyvalue186.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
365. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue187 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue187.id, heetapprovalhistorykeyvalue187.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue187.parentid, heetapprovalhistorykeyvalue187.index, heetapprovalhistorykeyvalue187.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue187.parentid = heetapprovalhistorykeyvalue186.id)
366. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue179 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue179.id, heetapprovalhistorykeyvalue179.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue179.parentid, heetapprovalhistorykeyvalue179.index, heetapprovalhistorykeyvalue179.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue179.parentid = heetapprovalhistorykeyvalue187.id)
367. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem188.payamount)
  • Buffers: shared hit=129
368. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem188.payamount
  • Buffers: shared hit=129
369. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem188 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem188.id, payrollitem188.userid, payrollitem188.paycodeid, payrollitem188.entrydate, payrollitem188.duration, payrollitem188.payamount, payrollitem188.paycurrencyid, payrollitem188.originuri, payrollitem188.payableite (...)
  • Index Cond: ((payrollitem188.userid = "*SELECT* 1".owneruserid) AND (payrollitem188.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem188.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: (payrollitem188.paycurrencyid = 20)
  • Buffers: shared hit=129
370. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem189 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem189.id, payrollitem189.userid, payrollitem189.paycodeid, payrollitem189.entrydate, payrollitem189.duration, payrollitem189.payamount, payrollitem189.paycurrencyid, payrollitem189.originuri, payrollitem189.payableite (...)
  • Index Cond: (payrollitem189.id = payrollitem188.id)
  • Filter: ((alternatives: SubPlan 56 or hashed SubPlan 57) OR (SubPlan 58) OR (SubPlan 59))
371.          

SubPlan (forIndex Scan)

372. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy190 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy190.userid = payrollitem189.userid) AND (userhierarchy190.supervisorid = 44) AND (userhierarchy190.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy190.enddate >= '2019-06-06'::date)
373. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy190_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy190_1.userid
  • Index Cond: (userhierarchy190_1.supervisorid = 44)
  • Filter: ((userhierarchy190_1.startdate <= '2019-06-06'::date) AND (userhierarchy190_1.enddate >= '2019-06-06'::date))
374. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue191.uri)
375. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue191.uri, tsapprovalrequestkeyvalue191.parentid
376. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest194.id
377. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes193.id
378. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet192 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet192.id, timesheet192.userid, timesheet192.startdate, timesheet192.enddate, timesheet192.approvalstatus, timesheet192.duedate, timesheet192.autosubmitdatetimeutc, timesheet192.lastautosu (...)
  • Index Cond: ((timesheet192.userid = payrollitem189.userid) AND (timesheet192.startdate <= payrollitem189.entrydate) AND (timesheet192.enddate >= payrollitem189.entrydate))
379. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes193 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes193.id, timesheetapprovalnodes193.timesheetid, timesheetapprovalnodes193.isapproved, timesheetapprovalnodes193.approverrole, timesheetapprovalnodes193.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes193.timesheetid = timesheet192.id)
380. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest194 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest194.id, tsapprovalrequest194.nodeid, tsapprovalrequest194.effectivedateutc, tsapprovalrequest194.remindersentutc, tsapprovalrequest194.overduesentutc, tsapprovalrequest194.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest194.userid = 44) AND (tsapprovalrequest194.nodeid = timesheetapprovalnodes193.id))
381. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue191 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue191.id, tsapprovalrequestkeyvalue191.tsapprovalrequestid, tsapprovalrequestkeyvalue191.parentid, tsapprovalrequestkeyvalue191.index, tsapprovalrequestkeyvalue191.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue191.tsapprovalrequestid = tsapprovalrequest194.id)
  • Filter: (upper(tsapprovalrequestkeyvalue191.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
382. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue195 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue195.id, tsapprovalrequestkeyvalue195.tsapprovalrequestid, tsapprovalrequestkeyvalue195.parentid, tsapprovalrequestkeyvalue195.index, tsapprovalrequestkeyvalue195.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue195.id = tsapprovalrequestkeyvalue191.parentid)
  • Filter: (tsapprovalrequestkeyvalue195.parentid IS NULL)
383. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue196.uri)
384. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue204.id
385. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue203.id
386. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue202.id
387. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue201.id
388. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue200.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue200 (cost=0.29..1.31 rows=1 width=32) (...)
389. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue199.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue199 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue200.id, heetapprovalhistorykeyvalue200.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue200.parentid, heetapprovalhistorykeyvalue200.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue200.id = heetapprovalhistorykeyvalue199.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue200.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
390. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory198.id
  • Output: heetapprovalhistorykeyvalue199.id, heetapprovalhistorykeyvalue199.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue199.parentid, heetapprovalhistorykeyvalue199.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue199.timesheetapprovalhistoryid = timesheetapprovalhistory198.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue199.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue199 (...)
391. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet197 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet197.id, timesheet197.userid, timesheet197.startdate, timesheet197.enddate, timesheet197.approvalstatus, timesheet197.duedate, timesheet197.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet197.userid = payrollitem189.userid) AND (timesheet197.startdate <= payrollitem189.entrydate) AND (timesheet197.enddate >= payrollitem189.entrydate))
392. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory198 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory198.id, timesheetapprovalhistory198.serialnumber, timesheetapprovalhistory198.timesheetid, timesheetapprovalhistory198.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory198.timesheetid = timesheet197.id)
  • Filter: (timesheetapprovalhistory198.userid = 44)
393. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue201 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue201.id, heetapprovalhistorykeyvalue201.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue201.parentid, heetapprovalhistorykeyvalue201.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue201.parentid = heetapprovalhistorykeyvalue200.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue201.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
394. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue202 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue202.id, heetapprovalhistorykeyvalue202.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue202.parentid, heetapprovalhistorykeyvalue202.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue202.parentid = heetapprovalhistorykeyvalue201.id)
395. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue203 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue203.id, heetapprovalhistorykeyvalue203.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue203.parentid, heetapprovalhistorykeyvalue203.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue203.parentid = heetapprovalhistorykeyvalue202.id)
  • Filter: (upper(heetapprovalhistorykeyvalue203.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
396. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue204 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue204.id, heetapprovalhistorykeyvalue204.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue204.parentid, heetapprovalhistorykeyvalue204.index, heetapprovalhistorykeyvalue204.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue204.parentid = heetapprovalhistorykeyvalue203.id)
397. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue196 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue196.id, heetapprovalhistorykeyvalue196.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue196.parentid, heetapprovalhistorykeyvalue196.index, heetapprovalhistorykeyvalue196.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue196.parentid = heetapprovalhistorykeyvalue204.id)
398. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.43..29.44 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem205.duration)
  • Buffers: shared hit=129
399. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=16) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem205.duration
  • Buffers: shared hit=129
400. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem205 (cost=0.28..2.30 rows=1 width=32) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem205.id, payrollitem205.userid, payrollitem205.paycodeid, payrollitem205.entrydate, payrollitem205.duration, payrollitem205.payamount, payrollitem205.paycurrencyid, payrollitem205.originuri, payrollitem205.payableite (...)
  • Index Cond: ((payrollitem205.userid = "*SELECT* 1".owneruserid) AND (payrollitem205.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem205.entrydate <= "*SELECT* 1".timesheetenddate))
  • Buffers: shared hit=129
401. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem206 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem206.id, payrollitem206.userid, payrollitem206.paycodeid, payrollitem206.entrydate, payrollitem206.duration, payrollitem206.payamount, payrollitem206.paycurrencyid, payrollitem206.originuri, payrollitem206.payableite (...)
  • Index Cond: (payrollitem206.id = payrollitem205.id)
  • Filter: ((alternatives: SubPlan 61 or hashed SubPlan 62) OR (SubPlan 63) OR (SubPlan 64))
402.          

SubPlan (forIndex Scan)

403. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy207 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy207.userid = payrollitem206.userid) AND (userhierarchy207.supervisorid = 44) AND (userhierarchy207.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy207.enddate >= '2019-06-06'::date)
404. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy207_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy207_1.userid
  • Index Cond: (userhierarchy207_1.supervisorid = 44)
  • Filter: ((userhierarchy207_1.startdate <= '2019-06-06'::date) AND (userhierarchy207_1.enddate >= '2019-06-06'::date))
405. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue208.uri)
406. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue208.uri, tsapprovalrequestkeyvalue208.parentid
407. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest211.id
408. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes210.id
409. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet209 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet209.id, timesheet209.userid, timesheet209.startdate, timesheet209.enddate, timesheet209.approvalstatus, timesheet209.duedate, timesheet209.autosubmitdatetimeutc, timesheet209.lastautosu (...)
  • Index Cond: ((timesheet209.userid = payrollitem206.userid) AND (timesheet209.startdate <= payrollitem206.entrydate) AND (timesheet209.enddate >= payrollitem206.entrydate))
410. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes210 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes210.id, timesheetapprovalnodes210.timesheetid, timesheetapprovalnodes210.isapproved, timesheetapprovalnodes210.approverrole, timesheetapprovalnodes210.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes210.timesheetid = timesheet209.id)
411. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest211 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest211.id, tsapprovalrequest211.nodeid, tsapprovalrequest211.effectivedateutc, tsapprovalrequest211.remindersentutc, tsapprovalrequest211.overduesentutc, tsapprovalrequest211.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest211.userid = 44) AND (tsapprovalrequest211.nodeid = timesheetapprovalnodes210.id))
412. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue208 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue208.id, tsapprovalrequestkeyvalue208.tsapprovalrequestid, tsapprovalrequestkeyvalue208.parentid, tsapprovalrequestkeyvalue208.index, tsapprovalrequestkeyvalue208.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue208.tsapprovalrequestid = tsapprovalrequest211.id)
  • Filter: (upper(tsapprovalrequestkeyvalue208.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
413. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue212 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue212.id, tsapprovalrequestkeyvalue212.tsapprovalrequestid, tsapprovalrequestkeyvalue212.parentid, tsapprovalrequestkeyvalue212.index, tsapprovalrequestkeyvalue212.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue212.id = tsapprovalrequestkeyvalue208.parentid)
  • Filter: (tsapprovalrequestkeyvalue212.parentid IS NULL)
414. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue213.uri)
415. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue221.id
416. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue220.id
417. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue219.id
418. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue218.id
419. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue217.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue217 (cost=0.29..1.31 rows=1 width=32) (...)
420. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue216.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue216 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue217.id, heetapprovalhistorykeyvalue217.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue217.parentid, heetapprovalhistorykeyvalue217.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue217.id = heetapprovalhistorykeyvalue216.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue217.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
421. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory215.id
  • Output: heetapprovalhistorykeyvalue216.id, heetapprovalhistorykeyvalue216.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue216.parentid, heetapprovalhistorykeyvalue216.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue216.timesheetapprovalhistoryid = timesheetapprovalhistory215.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue216.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue216 (...)
422. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet214 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet214.id, timesheet214.userid, timesheet214.startdate, timesheet214.enddate, timesheet214.approvalstatus, timesheet214.duedate, timesheet214.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet214.userid = payrollitem206.userid) AND (timesheet214.startdate <= payrollitem206.entrydate) AND (timesheet214.enddate >= payrollitem206.entrydate))
423. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory215 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory215.id, timesheetapprovalhistory215.serialnumber, timesheetapprovalhistory215.timesheetid, timesheetapprovalhistory215.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory215.timesheetid = timesheet214.id)
  • Filter: (timesheetapprovalhistory215.userid = 44)
424. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue218 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue218.id, heetapprovalhistorykeyvalue218.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue218.parentid, heetapprovalhistorykeyvalue218.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue218.parentid = heetapprovalhistorykeyvalue217.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue218.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
425. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue219 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue219.id, heetapprovalhistorykeyvalue219.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue219.parentid, heetapprovalhistorykeyvalue219.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue219.parentid = heetapprovalhistorykeyvalue218.id)
426. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue220 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue220.id, heetapprovalhistorykeyvalue220.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue220.parentid, heetapprovalhistorykeyvalue220.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue220.parentid = heetapprovalhistorykeyvalue219.id)
  • Filter: (upper(heetapprovalhistorykeyvalue220.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
427. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue221 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue221.id, heetapprovalhistorykeyvalue221.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue221.parentid, heetapprovalhistorykeyvalue221.index, heetapprovalhistorykeyvalue221.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue221.parentid = heetapprovalhistorykeyvalue220.id)
428. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue213 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue213.id, heetapprovalhistorykeyvalue213.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue213.parentid, heetapprovalhistorykeyvalue213.index, heetapprovalhistorykeyvalue213.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue213.parentid = heetapprovalhistorykeyvalue221.id)
429. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem222.payamount)
  • Buffers: shared hit=129
430. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem222.payamount
  • Buffers: shared hit=129
431. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem222 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem222.id, payrollitem222.userid, payrollitem222.paycodeid, payrollitem222.entrydate, payrollitem222.duration, payrollitem222.payamount, payrollitem222.paycurrencyid, payrollitem222.originuri, payrollitem222.payableite (...)
  • Index Cond: ((payrollitem222.userid = "*SELECT* 1".owneruserid) AND (payrollitem222.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem222.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem222.paycurrencyid = 1) AND (payrollitem222.paycodeid = 1))
  • Buffers: shared hit=129
432. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem223 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem223.id, payrollitem223.userid, payrollitem223.paycodeid, payrollitem223.entrydate, payrollitem223.duration, payrollitem223.payamount, payrollitem223.paycurrencyid, payrollitem223.originuri, payrollitem223.payableite (...)
  • Index Cond: (payrollitem223.id = payrollitem222.id)
  • Filter: ((alternatives: SubPlan 66 or hashed SubPlan 67) OR (SubPlan 68) OR (SubPlan 69))
433.          

SubPlan (forIndex Scan)

434. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy224 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy224.userid = payrollitem223.userid) AND (userhierarchy224.supervisorid = 44) AND (userhierarchy224.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy224.enddate >= '2019-06-06'::date)
435. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy224_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy224_1.userid
  • Index Cond: (userhierarchy224_1.supervisorid = 44)
  • Filter: ((userhierarchy224_1.startdate <= '2019-06-06'::date) AND (userhierarchy224_1.enddate >= '2019-06-06'::date))
436. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue225.uri)
437. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue225.uri, tsapprovalrequestkeyvalue225.parentid
438. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest228.id
439. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes227.id
440. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet226 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet226.id, timesheet226.userid, timesheet226.startdate, timesheet226.enddate, timesheet226.approvalstatus, timesheet226.duedate, timesheet226.autosubmitdatetimeutc, timesheet226.lastautosu (...)
  • Index Cond: ((timesheet226.userid = payrollitem223.userid) AND (timesheet226.startdate <= payrollitem223.entrydate) AND (timesheet226.enddate >= payrollitem223.entrydate))
441. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes227 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes227.id, timesheetapprovalnodes227.timesheetid, timesheetapprovalnodes227.isapproved, timesheetapprovalnodes227.approverrole, timesheetapprovalnodes227.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes227.timesheetid = timesheet226.id)
442. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest228 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest228.id, tsapprovalrequest228.nodeid, tsapprovalrequest228.effectivedateutc, tsapprovalrequest228.remindersentutc, tsapprovalrequest228.overduesentutc, tsapprovalrequest228.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest228.userid = 44) AND (tsapprovalrequest228.nodeid = timesheetapprovalnodes227.id))
443. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue225 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue225.id, tsapprovalrequestkeyvalue225.tsapprovalrequestid, tsapprovalrequestkeyvalue225.parentid, tsapprovalrequestkeyvalue225.index, tsapprovalrequestkeyvalue225.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue225.tsapprovalrequestid = tsapprovalrequest228.id)
  • Filter: (upper(tsapprovalrequestkeyvalue225.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
444. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue229 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue229.id, tsapprovalrequestkeyvalue229.tsapprovalrequestid, tsapprovalrequestkeyvalue229.parentid, tsapprovalrequestkeyvalue229.index, tsapprovalrequestkeyvalue229.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue229.id = tsapprovalrequestkeyvalue225.parentid)
  • Filter: (tsapprovalrequestkeyvalue229.parentid IS NULL)
445. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue230.uri)
446. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue238.id
447. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue237.id
448. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue236.id
449. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue235.id
450. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue234.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue234 (cost=0.29..1.31 rows=1 width=32) (...)
451. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue233.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue233 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue234.id, heetapprovalhistorykeyvalue234.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue234.parentid, heetapprovalhistorykeyvalue234.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue234.id = heetapprovalhistorykeyvalue233.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue234.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
452. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory232.id
  • Output: heetapprovalhistorykeyvalue233.id, heetapprovalhistorykeyvalue233.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue233.parentid, heetapprovalhistorykeyvalue233.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue233.timesheetapprovalhistoryid = timesheetapprovalhistory232.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue233.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue233 (...)
453. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet231 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet231.id, timesheet231.userid, timesheet231.startdate, timesheet231.enddate, timesheet231.approvalstatus, timesheet231.duedate, timesheet231.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet231.userid = payrollitem223.userid) AND (timesheet231.startdate <= payrollitem223.entrydate) AND (timesheet231.enddate >= payrollitem223.entrydate))
454. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory232 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory232.id, timesheetapprovalhistory232.serialnumber, timesheetapprovalhistory232.timesheetid, timesheetapprovalhistory232.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory232.timesheetid = timesheet231.id)
  • Filter: (timesheetapprovalhistory232.userid = 44)
455. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue235 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue235.id, heetapprovalhistorykeyvalue235.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue235.parentid, heetapprovalhistorykeyvalue235.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue235.parentid = heetapprovalhistorykeyvalue234.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue235.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
456. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue236 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue236.id, heetapprovalhistorykeyvalue236.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue236.parentid, heetapprovalhistorykeyvalue236.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue236.parentid = heetapprovalhistorykeyvalue235.id)
457. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue237 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue237.id, heetapprovalhistorykeyvalue237.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue237.parentid, heetapprovalhistorykeyvalue237.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue237.parentid = heetapprovalhistorykeyvalue236.id)
  • Filter: (upper(heetapprovalhistorykeyvalue237.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
458. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue238 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue238.id, heetapprovalhistorykeyvalue238.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue238.parentid, heetapprovalhistorykeyvalue238.index, heetapprovalhistorykeyvalue238.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue238.parentid = heetapprovalhistorykeyvalue237.id)
459. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue230 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue230.id, heetapprovalhistorykeyvalue230.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue230.parentid, heetapprovalhistorykeyvalue230.index, heetapprovalhistorykeyvalue230.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue230.parentid = heetapprovalhistorykeyvalue238.id)
460. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem239.payamount)
  • Buffers: shared hit=129
461. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem239.payamount
  • Buffers: shared hit=129
462. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem239 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem239.id, payrollitem239.userid, payrollitem239.paycodeid, payrollitem239.entrydate, payrollitem239.duration, payrollitem239.payamount, payrollitem239.paycurrencyid, payrollitem239.originuri, payrollitem239.payableite (...)
  • Index Cond: ((payrollitem239.userid = "*SELECT* 1".owneruserid) AND (payrollitem239.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem239.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem239.paycurrencyid = 2) AND (payrollitem239.paycodeid = 1))
  • Buffers: shared hit=129
463. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem240 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem240.id, payrollitem240.userid, payrollitem240.paycodeid, payrollitem240.entrydate, payrollitem240.duration, payrollitem240.payamount, payrollitem240.paycurrencyid, payrollitem240.originuri, payrollitem240.payableite (...)
  • Index Cond: (payrollitem240.id = payrollitem239.id)
  • Filter: ((alternatives: SubPlan 71 or hashed SubPlan 72) OR (SubPlan 73) OR (SubPlan 74))
464.          

SubPlan (forIndex Scan)

465. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy241 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy241.userid = payrollitem240.userid) AND (userhierarchy241.supervisorid = 44) AND (userhierarchy241.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy241.enddate >= '2019-06-06'::date)
466. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy241_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy241_1.userid
  • Index Cond: (userhierarchy241_1.supervisorid = 44)
  • Filter: ((userhierarchy241_1.startdate <= '2019-06-06'::date) AND (userhierarchy241_1.enddate >= '2019-06-06'::date))
467. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue242.uri)
468. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue242.uri, tsapprovalrequestkeyvalue242.parentid
469. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest245.id
470. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes244.id
471. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet243 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet243.id, timesheet243.userid, timesheet243.startdate, timesheet243.enddate, timesheet243.approvalstatus, timesheet243.duedate, timesheet243.autosubmitdatetimeutc, timesheet243.lastautosu (...)
  • Index Cond: ((timesheet243.userid = payrollitem240.userid) AND (timesheet243.startdate <= payrollitem240.entrydate) AND (timesheet243.enddate >= payrollitem240.entrydate))
472. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes244 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes244.id, timesheetapprovalnodes244.timesheetid, timesheetapprovalnodes244.isapproved, timesheetapprovalnodes244.approverrole, timesheetapprovalnodes244.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes244.timesheetid = timesheet243.id)
473. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest245 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest245.id, tsapprovalrequest245.nodeid, tsapprovalrequest245.effectivedateutc, tsapprovalrequest245.remindersentutc, tsapprovalrequest245.overduesentutc, tsapprovalrequest245.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest245.userid = 44) AND (tsapprovalrequest245.nodeid = timesheetapprovalnodes244.id))
474. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue242 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue242.id, tsapprovalrequestkeyvalue242.tsapprovalrequestid, tsapprovalrequestkeyvalue242.parentid, tsapprovalrequestkeyvalue242.index, tsapprovalrequestkeyvalue242.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue242.tsapprovalrequestid = tsapprovalrequest245.id)
  • Filter: (upper(tsapprovalrequestkeyvalue242.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
475. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue246 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue246.id, tsapprovalrequestkeyvalue246.tsapprovalrequestid, tsapprovalrequestkeyvalue246.parentid, tsapprovalrequestkeyvalue246.index, tsapprovalrequestkeyvalue246.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue246.id = tsapprovalrequestkeyvalue242.parentid)
  • Filter: (tsapprovalrequestkeyvalue246.parentid IS NULL)
476. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue247.uri)
477. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue255.id
478. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue254.id
479. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue253.id
480. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue252.id
481. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue251.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue251 (cost=0.29..1.31 rows=1 width=32) (...)
482. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue250.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue250 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue251.id, heetapprovalhistorykeyvalue251.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue251.parentid, heetapprovalhistorykeyvalue251.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue251.id = heetapprovalhistorykeyvalue250.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue251.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
483. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory249.id
  • Output: heetapprovalhistorykeyvalue250.id, heetapprovalhistorykeyvalue250.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue250.parentid, heetapprovalhistorykeyvalue250.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue250.timesheetapprovalhistoryid = timesheetapprovalhistory249.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue250.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue250 (...)
484. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet248 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet248.id, timesheet248.userid, timesheet248.startdate, timesheet248.enddate, timesheet248.approvalstatus, timesheet248.duedate, timesheet248.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet248.userid = payrollitem240.userid) AND (timesheet248.startdate <= payrollitem240.entrydate) AND (timesheet248.enddate >= payrollitem240.entrydate))
485. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory249 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory249.id, timesheetapprovalhistory249.serialnumber, timesheetapprovalhistory249.timesheetid, timesheetapprovalhistory249.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory249.timesheetid = timesheet248.id)
  • Filter: (timesheetapprovalhistory249.userid = 44)
486. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue252 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue252.id, heetapprovalhistorykeyvalue252.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue252.parentid, heetapprovalhistorykeyvalue252.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue252.parentid = heetapprovalhistorykeyvalue251.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue252.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
487. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue253 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue253.id, heetapprovalhistorykeyvalue253.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue253.parentid, heetapprovalhistorykeyvalue253.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue253.parentid = heetapprovalhistorykeyvalue252.id)
488. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue254 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue254.id, heetapprovalhistorykeyvalue254.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue254.parentid, heetapprovalhistorykeyvalue254.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue254.parentid = heetapprovalhistorykeyvalue253.id)
  • Filter: (upper(heetapprovalhistorykeyvalue254.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
489. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue255 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue255.id, heetapprovalhistorykeyvalue255.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue255.parentid, heetapprovalhistorykeyvalue255.index, heetapprovalhistorykeyvalue255.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue255.parentid = heetapprovalhistorykeyvalue254.id)
490. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue247 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue247.id, heetapprovalhistorykeyvalue247.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue247.parentid, heetapprovalhistorykeyvalue247.index, heetapprovalhistorykeyvalue247.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue247.parentid = heetapprovalhistorykeyvalue255.id)
491. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem256.payamount)
  • Buffers: shared hit=129
492. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem256.payamount
  • Buffers: shared hit=129
493. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem256 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem256.id, payrollitem256.userid, payrollitem256.paycodeid, payrollitem256.entrydate, payrollitem256.duration, payrollitem256.payamount, payrollitem256.paycurrencyid, payrollitem256.originuri, payrollitem256.payableite (...)
  • Index Cond: ((payrollitem256.userid = "*SELECT* 1".owneruserid) AND (payrollitem256.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem256.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem256.paycurrencyid = 3) AND (payrollitem256.paycodeid = 1))
  • Buffers: shared hit=129
494. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem257 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem257.id, payrollitem257.userid, payrollitem257.paycodeid, payrollitem257.entrydate, payrollitem257.duration, payrollitem257.payamount, payrollitem257.paycurrencyid, payrollitem257.originuri, payrollitem257.payableite (...)
  • Index Cond: (payrollitem257.id = payrollitem256.id)
  • Filter: ((alternatives: SubPlan 76 or hashed SubPlan 77) OR (SubPlan 78) OR (SubPlan 79))
495.          

SubPlan (forIndex Scan)

496. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy258 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy258.userid = payrollitem257.userid) AND (userhierarchy258.supervisorid = 44) AND (userhierarchy258.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy258.enddate >= '2019-06-06'::date)
497. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy258_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy258_1.userid
  • Index Cond: (userhierarchy258_1.supervisorid = 44)
  • Filter: ((userhierarchy258_1.startdate <= '2019-06-06'::date) AND (userhierarchy258_1.enddate >= '2019-06-06'::date))
498. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue259.uri)
499. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue259.uri, tsapprovalrequestkeyvalue259.parentid
500. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest262.id
501. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes261.id
502. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet260 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet260.id, timesheet260.userid, timesheet260.startdate, timesheet260.enddate, timesheet260.approvalstatus, timesheet260.duedate, timesheet260.autosubmitdatetimeutc, timesheet260.lastautosu (...)
  • Index Cond: ((timesheet260.userid = payrollitem257.userid) AND (timesheet260.startdate <= payrollitem257.entrydate) AND (timesheet260.enddate >= payrollitem257.entrydate))
503. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes261 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes261.id, timesheetapprovalnodes261.timesheetid, timesheetapprovalnodes261.isapproved, timesheetapprovalnodes261.approverrole, timesheetapprovalnodes261.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes261.timesheetid = timesheet260.id)
504. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest262 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest262.id, tsapprovalrequest262.nodeid, tsapprovalrequest262.effectivedateutc, tsapprovalrequest262.remindersentutc, tsapprovalrequest262.overduesentutc, tsapprovalrequest262.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest262.userid = 44) AND (tsapprovalrequest262.nodeid = timesheetapprovalnodes261.id))
505. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue259 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue259.id, tsapprovalrequestkeyvalue259.tsapprovalrequestid, tsapprovalrequestkeyvalue259.parentid, tsapprovalrequestkeyvalue259.index, tsapprovalrequestkeyvalue259.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue259.tsapprovalrequestid = tsapprovalrequest262.id)
  • Filter: (upper(tsapprovalrequestkeyvalue259.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
506. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue263 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue263.id, tsapprovalrequestkeyvalue263.tsapprovalrequestid, tsapprovalrequestkeyvalue263.parentid, tsapprovalrequestkeyvalue263.index, tsapprovalrequestkeyvalue263.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue263.id = tsapprovalrequestkeyvalue259.parentid)
  • Filter: (tsapprovalrequestkeyvalue263.parentid IS NULL)
507. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue264.uri)
508. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue272.id
509. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue271.id
510. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue270.id
511. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue269.id
512. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue268.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue268 (cost=0.29..1.31 rows=1 width=32) (...)
513. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue267.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue267 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue268.id, heetapprovalhistorykeyvalue268.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue268.parentid, heetapprovalhistorykeyvalue268.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue268.id = heetapprovalhistorykeyvalue267.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue268.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
514. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory266.id
  • Output: heetapprovalhistorykeyvalue267.id, heetapprovalhistorykeyvalue267.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue267.parentid, heetapprovalhistorykeyvalue267.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue267.timesheetapprovalhistoryid = timesheetapprovalhistory266.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue267.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue267 (...)
515. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet265 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet265.id, timesheet265.userid, timesheet265.startdate, timesheet265.enddate, timesheet265.approvalstatus, timesheet265.duedate, timesheet265.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet265.userid = payrollitem257.userid) AND (timesheet265.startdate <= payrollitem257.entrydate) AND (timesheet265.enddate >= payrollitem257.entrydate))
516. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory266 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory266.id, timesheetapprovalhistory266.serialnumber, timesheetapprovalhistory266.timesheetid, timesheetapprovalhistory266.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory266.timesheetid = timesheet265.id)
  • Filter: (timesheetapprovalhistory266.userid = 44)
517. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue269 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue269.id, heetapprovalhistorykeyvalue269.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue269.parentid, heetapprovalhistorykeyvalue269.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue269.parentid = heetapprovalhistorykeyvalue268.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue269.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
518. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue270 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue270.id, heetapprovalhistorykeyvalue270.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue270.parentid, heetapprovalhistorykeyvalue270.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue270.parentid = heetapprovalhistorykeyvalue269.id)
519. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue271 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue271.id, heetapprovalhistorykeyvalue271.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue271.parentid, heetapprovalhistorykeyvalue271.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue271.parentid = heetapprovalhistorykeyvalue270.id)
  • Filter: (upper(heetapprovalhistorykeyvalue271.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
520. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue272 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue272.id, heetapprovalhistorykeyvalue272.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue272.parentid, heetapprovalhistorykeyvalue272.index, heetapprovalhistorykeyvalue272.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue272.parentid = heetapprovalhistorykeyvalue271.id)
521. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue264 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue264.id, heetapprovalhistorykeyvalue264.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue264.parentid, heetapprovalhistorykeyvalue264.index, heetapprovalhistorykeyvalue264.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue264.parentid = heetapprovalhistorykeyvalue272.id)
522. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem273.payamount)
  • Buffers: shared hit=129
523. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem273.payamount
  • Buffers: shared hit=129
524. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem273 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem273.id, payrollitem273.userid, payrollitem273.paycodeid, payrollitem273.entrydate, payrollitem273.duration, payrollitem273.payamount, payrollitem273.paycurrencyid, payrollitem273.originuri, payrollitem273.payableite (...)
  • Index Cond: ((payrollitem273.userid = "*SELECT* 1".owneruserid) AND (payrollitem273.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem273.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem273.paycurrencyid = 4) AND (payrollitem273.paycodeid = 1))
  • Buffers: shared hit=129
525. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem274 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem274.id, payrollitem274.userid, payrollitem274.paycodeid, payrollitem274.entrydate, payrollitem274.duration, payrollitem274.payamount, payrollitem274.paycurrencyid, payrollitem274.originuri, payrollitem274.payableite (...)
  • Index Cond: (payrollitem274.id = payrollitem273.id)
  • Filter: ((alternatives: SubPlan 81 or hashed SubPlan 82) OR (SubPlan 83) OR (SubPlan 84))
526.          

SubPlan (forIndex Scan)

527. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy275 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy275.userid = payrollitem274.userid) AND (userhierarchy275.supervisorid = 44) AND (userhierarchy275.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy275.enddate >= '2019-06-06'::date)
528. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy275_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy275_1.userid
  • Index Cond: (userhierarchy275_1.supervisorid = 44)
  • Filter: ((userhierarchy275_1.startdate <= '2019-06-06'::date) AND (userhierarchy275_1.enddate >= '2019-06-06'::date))
529. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue276.uri)
530. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue276.uri, tsapprovalrequestkeyvalue276.parentid
531. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest279.id
532. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes278.id
533. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet277 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet277.id, timesheet277.userid, timesheet277.startdate, timesheet277.enddate, timesheet277.approvalstatus, timesheet277.duedate, timesheet277.autosubmitdatetimeutc, timesheet277.lastautosu (...)
  • Index Cond: ((timesheet277.userid = payrollitem274.userid) AND (timesheet277.startdate <= payrollitem274.entrydate) AND (timesheet277.enddate >= payrollitem274.entrydate))
534. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes278 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes278.id, timesheetapprovalnodes278.timesheetid, timesheetapprovalnodes278.isapproved, timesheetapprovalnodes278.approverrole, timesheetapprovalnodes278.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes278.timesheetid = timesheet277.id)
535. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest279 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest279.id, tsapprovalrequest279.nodeid, tsapprovalrequest279.effectivedateutc, tsapprovalrequest279.remindersentutc, tsapprovalrequest279.overduesentutc, tsapprovalrequest279.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest279.userid = 44) AND (tsapprovalrequest279.nodeid = timesheetapprovalnodes278.id))
536. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue276 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue276.id, tsapprovalrequestkeyvalue276.tsapprovalrequestid, tsapprovalrequestkeyvalue276.parentid, tsapprovalrequestkeyvalue276.index, tsapprovalrequestkeyvalue276.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue276.tsapprovalrequestid = tsapprovalrequest279.id)
  • Filter: (upper(tsapprovalrequestkeyvalue276.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
537. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue280 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue280.id, tsapprovalrequestkeyvalue280.tsapprovalrequestid, tsapprovalrequestkeyvalue280.parentid, tsapprovalrequestkeyvalue280.index, tsapprovalrequestkeyvalue280.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue280.id = tsapprovalrequestkeyvalue276.parentid)
  • Filter: (tsapprovalrequestkeyvalue280.parentid IS NULL)
538. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue281.uri)
539. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue289.id
540. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue288.id
541. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue287.id
542. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue286.id
543. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue285.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue285 (cost=0.29..1.31 rows=1 width=32) (...)
544. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue284.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue284 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue285.id, heetapprovalhistorykeyvalue285.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue285.parentid, heetapprovalhistorykeyvalue285.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue285.id = heetapprovalhistorykeyvalue284.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue285.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
545. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory283.id
  • Output: heetapprovalhistorykeyvalue284.id, heetapprovalhistorykeyvalue284.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue284.parentid, heetapprovalhistorykeyvalue284.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue284.timesheetapprovalhistoryid = timesheetapprovalhistory283.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue284.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue284 (...)
546. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet282 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet282.id, timesheet282.userid, timesheet282.startdate, timesheet282.enddate, timesheet282.approvalstatus, timesheet282.duedate, timesheet282.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet282.userid = payrollitem274.userid) AND (timesheet282.startdate <= payrollitem274.entrydate) AND (timesheet282.enddate >= payrollitem274.entrydate))
547. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory283 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory283.id, timesheetapprovalhistory283.serialnumber, timesheetapprovalhistory283.timesheetid, timesheetapprovalhistory283.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory283.timesheetid = timesheet282.id)
  • Filter: (timesheetapprovalhistory283.userid = 44)
548. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue286 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue286.id, heetapprovalhistorykeyvalue286.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue286.parentid, heetapprovalhistorykeyvalue286.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue286.parentid = heetapprovalhistorykeyvalue285.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue286.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
549. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue287 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue287.id, heetapprovalhistorykeyvalue287.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue287.parentid, heetapprovalhistorykeyvalue287.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue287.parentid = heetapprovalhistorykeyvalue286.id)
550. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue288 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue288.id, heetapprovalhistorykeyvalue288.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue288.parentid, heetapprovalhistorykeyvalue288.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue288.parentid = heetapprovalhistorykeyvalue287.id)
  • Filter: (upper(heetapprovalhistorykeyvalue288.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
551. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue289 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue289.id, heetapprovalhistorykeyvalue289.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue289.parentid, heetapprovalhistorykeyvalue289.index, heetapprovalhistorykeyvalue289.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue289.parentid = heetapprovalhistorykeyvalue288.id)
552. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue281 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue281.id, heetapprovalhistorykeyvalue281.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue281.parentid, heetapprovalhistorykeyvalue281.index, heetapprovalhistorykeyvalue281.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue281.parentid = heetapprovalhistorykeyvalue289.id)
553. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem290.payamount)
  • Buffers: shared hit=129
554. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem290.payamount
  • Buffers: shared hit=129
555. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem290 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem290.id, payrollitem290.userid, payrollitem290.paycodeid, payrollitem290.entrydate, payrollitem290.duration, payrollitem290.payamount, payrollitem290.paycurrencyid, payrollitem290.originuri, payrollitem290.payableite (...)
  • Index Cond: ((payrollitem290.userid = "*SELECT* 1".owneruserid) AND (payrollitem290.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem290.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem290.paycurrencyid = 5) AND (payrollitem290.paycodeid = 1))
  • Buffers: shared hit=129
556. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem291 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem291.id, payrollitem291.userid, payrollitem291.paycodeid, payrollitem291.entrydate, payrollitem291.duration, payrollitem291.payamount, payrollitem291.paycurrencyid, payrollitem291.originuri, payrollitem291.payableite (...)
  • Index Cond: (payrollitem291.id = payrollitem290.id)
  • Filter: ((alternatives: SubPlan 86 or hashed SubPlan 87) OR (SubPlan 88) OR (SubPlan 89))
557.          

SubPlan (forIndex Scan)

558. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy292 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy292.userid = payrollitem291.userid) AND (userhierarchy292.supervisorid = 44) AND (userhierarchy292.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy292.enddate >= '2019-06-06'::date)
559. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy292_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy292_1.userid
  • Index Cond: (userhierarchy292_1.supervisorid = 44)
  • Filter: ((userhierarchy292_1.startdate <= '2019-06-06'::date) AND (userhierarchy292_1.enddate >= '2019-06-06'::date))
560. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue293.uri)
561. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue293.uri, tsapprovalrequestkeyvalue293.parentid
562. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest296.id
563. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes295.id
564. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet294 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet294.id, timesheet294.userid, timesheet294.startdate, timesheet294.enddate, timesheet294.approvalstatus, timesheet294.duedate, timesheet294.autosubmitdatetimeutc, timesheet294.lastautosu (...)
  • Index Cond: ((timesheet294.userid = payrollitem291.userid) AND (timesheet294.startdate <= payrollitem291.entrydate) AND (timesheet294.enddate >= payrollitem291.entrydate))
565. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes295 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes295.id, timesheetapprovalnodes295.timesheetid, timesheetapprovalnodes295.isapproved, timesheetapprovalnodes295.approverrole, timesheetapprovalnodes295.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes295.timesheetid = timesheet294.id)
566. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest296 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest296.id, tsapprovalrequest296.nodeid, tsapprovalrequest296.effectivedateutc, tsapprovalrequest296.remindersentutc, tsapprovalrequest296.overduesentutc, tsapprovalrequest296.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest296.userid = 44) AND (tsapprovalrequest296.nodeid = timesheetapprovalnodes295.id))
567. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue293 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue293.id, tsapprovalrequestkeyvalue293.tsapprovalrequestid, tsapprovalrequestkeyvalue293.parentid, tsapprovalrequestkeyvalue293.index, tsapprovalrequestkeyvalue293.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue293.tsapprovalrequestid = tsapprovalrequest296.id)
  • Filter: (upper(tsapprovalrequestkeyvalue293.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
568. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue297 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue297.id, tsapprovalrequestkeyvalue297.tsapprovalrequestid, tsapprovalrequestkeyvalue297.parentid, tsapprovalrequestkeyvalue297.index, tsapprovalrequestkeyvalue297.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue297.id = tsapprovalrequestkeyvalue293.parentid)
  • Filter: (tsapprovalrequestkeyvalue297.parentid IS NULL)
569. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue298.uri)
570. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue306.id
571. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue305.id
572. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue304.id
573. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue303.id
574. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue302.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue302 (cost=0.29..1.31 rows=1 width=32) (...)
575. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue301.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue301 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue302.id, heetapprovalhistorykeyvalue302.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue302.parentid, heetapprovalhistorykeyvalue302.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue302.id = heetapprovalhistorykeyvalue301.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue302.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
576. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory300.id
  • Output: heetapprovalhistorykeyvalue301.id, heetapprovalhistorykeyvalue301.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue301.parentid, heetapprovalhistorykeyvalue301.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue301.timesheetapprovalhistoryid = timesheetapprovalhistory300.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue301.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue301 (...)
577. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet299 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet299.id, timesheet299.userid, timesheet299.startdate, timesheet299.enddate, timesheet299.approvalstatus, timesheet299.duedate, timesheet299.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet299.userid = payrollitem291.userid) AND (timesheet299.startdate <= payrollitem291.entrydate) AND (timesheet299.enddate >= payrollitem291.entrydate))
578. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory300 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory300.id, timesheetapprovalhistory300.serialnumber, timesheetapprovalhistory300.timesheetid, timesheetapprovalhistory300.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory300.timesheetid = timesheet299.id)
  • Filter: (timesheetapprovalhistory300.userid = 44)
579. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue303 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue303.id, heetapprovalhistorykeyvalue303.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue303.parentid, heetapprovalhistorykeyvalue303.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue303.parentid = heetapprovalhistorykeyvalue302.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue303.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
580. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue304 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue304.id, heetapprovalhistorykeyvalue304.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue304.parentid, heetapprovalhistorykeyvalue304.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue304.parentid = heetapprovalhistorykeyvalue303.id)
581. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue305 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue305.id, heetapprovalhistorykeyvalue305.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue305.parentid, heetapprovalhistorykeyvalue305.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue305.parentid = heetapprovalhistorykeyvalue304.id)
  • Filter: (upper(heetapprovalhistorykeyvalue305.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
582. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue306 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue306.id, heetapprovalhistorykeyvalue306.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue306.parentid, heetapprovalhistorykeyvalue306.index, heetapprovalhistorykeyvalue306.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue306.parentid = heetapprovalhistorykeyvalue305.id)
583. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue298 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue298.id, heetapprovalhistorykeyvalue298.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue298.parentid, heetapprovalhistorykeyvalue298.index, heetapprovalhistorykeyvalue298.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue298.parentid = heetapprovalhistorykeyvalue306.id)
584. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem307.payamount)
  • Buffers: shared hit=129
585. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem307.payamount
  • Buffers: shared hit=129
586. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem307 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem307.id, payrollitem307.userid, payrollitem307.paycodeid, payrollitem307.entrydate, payrollitem307.duration, payrollitem307.payamount, payrollitem307.paycurrencyid, payrollitem307.originuri, payrollitem307.payableite (...)
  • Index Cond: ((payrollitem307.userid = "*SELECT* 1".owneruserid) AND (payrollitem307.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem307.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem307.paycurrencyid = 6) AND (payrollitem307.paycodeid = 1))
  • Buffers: shared hit=129
587. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem308 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem308.id, payrollitem308.userid, payrollitem308.paycodeid, payrollitem308.entrydate, payrollitem308.duration, payrollitem308.payamount, payrollitem308.paycurrencyid, payrollitem308.originuri, payrollitem308.payableite (...)
  • Index Cond: (payrollitem308.id = payrollitem307.id)
  • Filter: ((alternatives: SubPlan 91 or hashed SubPlan 92) OR (SubPlan 93) OR (SubPlan 94))
588.          

SubPlan (forIndex Scan)

589. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy309 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy309.userid = payrollitem308.userid) AND (userhierarchy309.supervisorid = 44) AND (userhierarchy309.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy309.enddate >= '2019-06-06'::date)
590. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy309_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy309_1.userid
  • Index Cond: (userhierarchy309_1.supervisorid = 44)
  • Filter: ((userhierarchy309_1.startdate <= '2019-06-06'::date) AND (userhierarchy309_1.enddate >= '2019-06-06'::date))
591. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue310.uri)
592. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue310.uri, tsapprovalrequestkeyvalue310.parentid
593. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest313.id
594. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes312.id
595. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet311 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet311.id, timesheet311.userid, timesheet311.startdate, timesheet311.enddate, timesheet311.approvalstatus, timesheet311.duedate, timesheet311.autosubmitdatetimeutc, timesheet311.lastautosu (...)
  • Index Cond: ((timesheet311.userid = payrollitem308.userid) AND (timesheet311.startdate <= payrollitem308.entrydate) AND (timesheet311.enddate >= payrollitem308.entrydate))
596. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes312 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes312.id, timesheetapprovalnodes312.timesheetid, timesheetapprovalnodes312.isapproved, timesheetapprovalnodes312.approverrole, timesheetapprovalnodes312.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes312.timesheetid = timesheet311.id)
597. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest313 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest313.id, tsapprovalrequest313.nodeid, tsapprovalrequest313.effectivedateutc, tsapprovalrequest313.remindersentutc, tsapprovalrequest313.overduesentutc, tsapprovalrequest313.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest313.userid = 44) AND (tsapprovalrequest313.nodeid = timesheetapprovalnodes312.id))
598. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue310 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue310.id, tsapprovalrequestkeyvalue310.tsapprovalrequestid, tsapprovalrequestkeyvalue310.parentid, tsapprovalrequestkeyvalue310.index, tsapprovalrequestkeyvalue310.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue310.tsapprovalrequestid = tsapprovalrequest313.id)
  • Filter: (upper(tsapprovalrequestkeyvalue310.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
599. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue314 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue314.id, tsapprovalrequestkeyvalue314.tsapprovalrequestid, tsapprovalrequestkeyvalue314.parentid, tsapprovalrequestkeyvalue314.index, tsapprovalrequestkeyvalue314.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue314.id = tsapprovalrequestkeyvalue310.parentid)
  • Filter: (tsapprovalrequestkeyvalue314.parentid IS NULL)
600. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue315.uri)
601. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue323.id
602. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue322.id
603. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue321.id
604. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue320.id
605. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue319.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue319 (cost=0.29..1.31 rows=1 width=32) (...)
606. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue318.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue318 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue319.id, heetapprovalhistorykeyvalue319.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue319.parentid, heetapprovalhistorykeyvalue319.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue319.id = heetapprovalhistorykeyvalue318.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue319.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
607. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory317.id
  • Output: heetapprovalhistorykeyvalue318.id, heetapprovalhistorykeyvalue318.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue318.parentid, heetapprovalhistorykeyvalue318.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue318.timesheetapprovalhistoryid = timesheetapprovalhistory317.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue318.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue318 (...)
608. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet316 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet316.id, timesheet316.userid, timesheet316.startdate, timesheet316.enddate, timesheet316.approvalstatus, timesheet316.duedate, timesheet316.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet316.userid = payrollitem308.userid) AND (timesheet316.startdate <= payrollitem308.entrydate) AND (timesheet316.enddate >= payrollitem308.entrydate))
609. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory317 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory317.id, timesheetapprovalhistory317.serialnumber, timesheetapprovalhistory317.timesheetid, timesheetapprovalhistory317.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory317.timesheetid = timesheet316.id)
  • Filter: (timesheetapprovalhistory317.userid = 44)
610. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue320 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue320.id, heetapprovalhistorykeyvalue320.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue320.parentid, heetapprovalhistorykeyvalue320.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue320.parentid = heetapprovalhistorykeyvalue319.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue320.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
611. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue321 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue321.id, heetapprovalhistorykeyvalue321.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue321.parentid, heetapprovalhistorykeyvalue321.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue321.parentid = heetapprovalhistorykeyvalue320.id)
612. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue322 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue322.id, heetapprovalhistorykeyvalue322.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue322.parentid, heetapprovalhistorykeyvalue322.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue322.parentid = heetapprovalhistorykeyvalue321.id)
  • Filter: (upper(heetapprovalhistorykeyvalue322.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
613. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue323 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue323.id, heetapprovalhistorykeyvalue323.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue323.parentid, heetapprovalhistorykeyvalue323.index, heetapprovalhistorykeyvalue323.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue323.parentid = heetapprovalhistorykeyvalue322.id)
614. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue315 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue315.id, heetapprovalhistorykeyvalue315.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue315.parentid, heetapprovalhistorykeyvalue315.index, heetapprovalhistorykeyvalue315.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue315.parentid = heetapprovalhistorykeyvalue323.id)
615. 0.064 0.192 ↑ 1.0 1 64

Aggregate (cost=29.44..29.45 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=64)

  • Output: sum(payrollitem324.payamount)
  • Buffers: shared hit=129
616. 0.064 0.128 ↓ 0.0 0 64

Nested Loop Semi Join (cost=0.56..29.43 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=64)

  • Output: payrollitem324.payamount
  • Buffers: shared hit=129
617. 0.064 0.064 ↓ 0.0 0 64

Index Scan using ixpri_userid_entrydate2userid on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem324 (cost=0.28..2.31 rows=1 width=20) (actual time=0.001..0.001 rows=0 loops=64)

  • Output: payrollitem324.id, payrollitem324.userid, payrollitem324.paycodeid, payrollitem324.entrydate, payrollitem324.duration, payrollitem324.payamount, payrollitem324.paycurrencyid, payrollitem324.originuri, payrollitem324.payableite (...)
  • Index Cond: ((payrollitem324.userid = "*SELECT* 1".owneruserid) AND (payrollitem324.entrydate >= "*SELECT* 1".timesheetstartdate) AND (payrollitem324.entrydate <= "*SELECT* 1".timesheetenddate))
  • Filter: ((payrollitem324.paycurrencyid = 7) AND (payrollitem324.paycodeid = 1))
  • Buffers: shared hit=129
618. 0.000 0.000 ↓ 0.0 0

Index Scan using payrollitem_pkey on "1583482d05e64fd790f3e6abdce13f98".payrollitem payrollitem325 (cost=0.28..27.12 rows=1 width=16) (never executed)

  • Output: payrollitem325.id, payrollitem325.userid, payrollitem325.paycodeid, payrollitem325.entrydate, payrollitem325.duration, payrollitem325.payamount, payrollitem325.paycurrencyid, payrollitem325.originuri, payrollitem325.payableite (...)
  • Index Cond: (payrollitem325.id = payrollitem324.id)
  • Filter: ((alternatives: SubPlan 96 or hashed SubPlan 97) OR (SubPlan 98) OR (SubPlan 99))
619.          

SubPlan (forIndex Scan)

620. 0.000 0.000 ↓ 0.0 0

Index Scan using ix3uh_usersuperstart on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy326 (cost=0.14..2.17 rows=1 width=0) (never executed)

  • Index Cond: ((userhierarchy326.userid = payrollitem325.userid) AND (userhierarchy326.supervisorid = 44) AND (userhierarchy326.startdate <= '2019-06-06'::date))
  • Filter: (userhierarchy326.enddate >= '2019-06-06'::date)
621. 0.000 0.000 ↓ 0.0 0

Index Scan using ixuhsupervisorid on "1583482d05e64fd790f3e6abdce13f98".userhierarchy userhierarchy326_1 (cost=0.14..4.56 rows=72 width=4) (never executed)

  • Output: userhierarchy326_1.userid
  • Index Cond: (userhierarchy326_1.supervisorid = 44)
  • Filter: ((userhierarchy326_1.startdate <= '2019-06-06'::date) AND (userhierarchy326_1.enddate >= '2019-06-06'::date))
622. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.12..13.64 rows=1 width=63) (never executed)

  • Output: upper(tsapprovalrequestkeyvalue327.uri)
623. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.85..10.95 rows=8 width=79) (never executed)

  • Output: tsapprovalrequestkeyvalue327.uri, tsapprovalrequestkeyvalue327.parentid
624. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.57..10.13 rows=1 width=4) (never executed)

  • Output: tsapprovalrequest330.id
625. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.43..9.94 rows=1 width=16) (never executed)

  • Output: timesheetapprovalnodes329.id
626. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet328 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet328.id, timesheet328.userid, timesheet328.startdate, timesheet328.enddate, timesheet328.approvalstatus, timesheet328.duedate, timesheet328.autosubmitdatetimeutc, timesheet328.lastautosu (...)
  • Index Cond: ((timesheet328.userid = payrollitem325.userid) AND (timesheet328.startdate <= payrollitem325.entrydate) AND (timesheet328.enddate >= payrollitem325.entrydate))
627. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtantimesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalnodes timesheetapprovalnodes329 (cost=0.14..1.83 rows=2 width=32) (never executed)

  • Output: timesheetapprovalnodes329.id, timesheetapprovalnodes329.timesheetid, timesheetapprovalnodes329.isapproved, timesheetapprovalnodes329.approverrole, timesheetapprovalnodes329.userid, timesheetappr (...)
  • Index Cond: (timesheetapprovalnodes329.timesheetid = timesheet328.id)
628. 0.000 0.000 ↓ 0.0 0

Index Scan using uix2tsar_nodeid_userid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequest tsapprovalrequest330 (cost=0.14..0.18 rows=1 width=20) (never executed)

  • Output: tsapprovalrequest330.id, tsapprovalrequest330.nodeid, tsapprovalrequest330.effectivedateutc, tsapprovalrequest330.remindersentutc, tsapprovalrequest330.overduesentutc, tsapprovalrequest330.waitingbatc (...)
  • Index Cond: ((tsapprovalrequest330.userid = 44) AND (tsapprovalrequest330.nodeid = timesheetapprovalnodes329.id))
629. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsarkvtsapprovalrequestid on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue327 (cost=0.28..0.74 rows=8 width=83) (never executed)

  • Output: tsapprovalrequestkeyvalue327.id, tsapprovalrequestkeyvalue327.tsapprovalrequestid, tsapprovalrequestkeyvalue327.parentid, tsapprovalrequestkeyvalue327.index, tsapprovalrequestkeyvalue327.key, tsapprovalrequ (...)
  • Index Cond: (tsapprovalrequestkeyvalue327.tsapprovalrequestid = tsapprovalrequest330.id)
  • Filter: (upper(tsapprovalrequestkeyvalue327.key) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
630. 0.000 0.000 ↓ 0.0 0

Index Scan using tsapprovalrequestkeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".tsapprovalrequestkeyvalue tsapprovalrequestkeyvalue331 (cost=0.28..0.33 rows=1 width=16) (never executed)

  • Output: tsapprovalrequestkeyvalue331.id, tsapprovalrequestkeyvalue331.tsapprovalrequestid, tsapprovalrequestkeyvalue331.parentid, tsapprovalrequestkeyvalue331.index, tsapprovalrequestkeyvalue331.key, tsapprovalrequestkey (...)
  • Index Cond: (tsapprovalrequestkeyvalue331.id = tsapprovalrequestkeyvalue327.parentid)
  • Filter: (tsapprovalrequestkeyvalue331.parentid IS NULL)
631. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.55..27.97 rows=1 width=73) (never executed)

  • Output: upper(heetapprovalhistorykeyvalue332.uri)
632. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=2.27..27.60 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue340.id
633. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.98..25.84 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue339.id
634. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.70..25.46 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue338.id
635. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.41..24.24 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue337.id
636. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=1.13..22.23 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue336.parentid
  • -> Index Scan using timesheetapprovalhistorykeyvalue_pkey on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue336 (cost=0.29..1.31 rows=1 width=32) (...)
637. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.84..20.91 rows=1 width=16) (never executed)

  • Output: heetapprovalhistorykeyvalue335.parentid
  • -> Index Scan using ixtahkvtimesheetapprovalhistoryid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue335 (cost=0.29..5.49 rows=1 width=32 (...)
  • Output: heetapprovalhistorykeyvalue336.id, heetapprovalhistorykeyvalue336.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue336.parentid, heetapprovalhistorykeyvalue336.index, heetappro (...)
  • Index Cond: (heetapprovalhistorykeyvalue336.id = heetapprovalhistorykeyvalue335.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue336.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-EXPECTED-APPROVAL-AGENT-USER'::text)
638. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.56..15.41 rows=1 width=16) (never executed)

  • Output: timesheetapprovalhistory334.id
  • Output: heetapprovalhistorykeyvalue335.id, heetapprovalhistorykeyvalue335.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue335.parentid, heetapprovalhistorykeyvalue335.index, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue335.timesheetapprovalhistoryid = timesheetapprovalhistory334.id)
  • Filter: ((upper(heetapprovalhistorykeyvalue335.key) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-NODES'::text) AND (upper(heetapprovalhistorykeyvalue335 (...)
639. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtsuseridstartdateenddate on "1583482d05e64fd790f3e6abdce13f98".timesheet timesheet333 (cost=0.28..4.38 rows=3 width=16) (never executed)

  • Output: timesheet333.id, timesheet333.userid, timesheet333.startdate, timesheet333.enddate, timesheet333.approvalstatus, timesheet333.duedate, timesheet333.autosubmitdatetimeutc, (...)
  • Index Cond: ((timesheet333.userid = payrollitem325.userid) AND (timesheet333.startdate <= payrollitem325.entrydate) AND (timesheet333.enddate >= payrollitem325.entrydate))
640. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtah2timesheetid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistory timesheetapprovalhistory334 (cost=0.28..3.67 rows=1 width=32) (never executed)

  • Output: timesheetapprovalhistory334.id, timesheetapprovalhistory334.serialnumber, timesheetapprovalhistory334.timesheetid, timesheetapprovalhistory334.action, timesheetapprovalhi (...)
  • Index Cond: (timesheetapprovalhistory334.timesheetid = timesheet333.id)
  • Filter: (timesheetapprovalhistory334.userid = 44)
641. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue337 (cost=0.29..2.00 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue337.id, heetapprovalhistorykeyvalue337.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue337.parentid, heetapprovalhistorykeyvalue337.index, heetapprovalhis (...)
  • Index Cond: (heetapprovalhistorykeyvalue337.parentid = heetapprovalhistorykeyvalue336.parentid)
  • Filter: (upper(heetapprovalhistorykeyvalue337.uri) = 'URN:REPLICON:APPROVAL-HISTORICAL-ACTION-DATA-KEY:REMOVED-APPROVAL-REQUEST-METADATA'::text)
642. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue338 (cost=0.29..1.21 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue338.id, heetapprovalhistorykeyvalue338.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue338.parentid, heetapprovalhistorykeyvalue338.index, heetapprovalhistoryke (...)
  • Index Cond: (heetapprovalhistorykeyvalue338.parentid = heetapprovalhistorykeyvalue337.id)
643. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue339 (cost=0.29..0.37 rows=1 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue339.id, heetapprovalhistorykeyvalue339.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue339.parentid, heetapprovalhistorykeyvalue339.index, heetapprovalhistorykeyvalue (...)
  • Index Cond: (heetapprovalhistorykeyvalue339.parentid = heetapprovalhistorykeyvalue338.id)
  • Filter: (upper(heetapprovalhistorykeyvalue339.uri) = 'URN:REPLICON:APPROVAL-REQUEST-METADATA-KEY:ADDITIONAL-APPROVER-DATA-ACCESS-LEVELS'::text)
644. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue340 (cost=0.29..1.74 rows=2 width=32) (never executed)

  • Output: heetapprovalhistorykeyvalue340.id, heetapprovalhistorykeyvalue340.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue340.parentid, heetapprovalhistorykeyvalue340.index, heetapprovalhistorykeyvalue340.ke (...)
  • Index Cond: (heetapprovalhistorykeyvalue340.parentid = heetapprovalhistorykeyvalue339.id)
645. 0.000 0.000 ↓ 0.0 0

Index Scan using ixtahkvparentid on "1583482d05e64fd790f3e6abdce13f98".timesheetapprovalhistorykeyvalue heetapprovalhistorykeyvalue332 (cost=0.29..0.36 rows=2 width=89) (never executed)

  • Output: heetapprovalhistorykeyvalue332.id, heetapprovalhistorykeyvalue332.timesheetapprovalhistoryid, heetapprovalhistorykeyvalue332.parentid, heetapprovalhistorykeyvalue332.index, heetapprovalhistorykeyvalue332.key, hee (...)
  • Index Cond: (heetapprovalhistorykeyvalue332.parentid = heetapprovalhistorykeyvalue340.id)