QUERY PLAN
Result (cost=43.69..43.70 rows=1 width=1)
InitPlan 2 (returns $1)
-> Index Scan using tbl_clients_pkey on tbl_clients c (cost=35.66..43.69 rows=1 width=0)
Index Cond: (id = 1)
Filter: ((sales_rep = 5493) OR (sales_rep IS NULL) OR (hashed SubPlan 1))
SubPlan 1
-> Seq Scan on tbl_user_visit_clients (cost=0.00..35.50 rows=10 width=4)
Filter: (user_id = 5495)