QUERY PLAN
Unique (cost=24.66..24.67 rows=2 width=4)
-> Sort (cost=24.66..24.67 rows=2 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.28..24.65 rows=2 width=4)
-> Seq Scan on tbl_reimbursement_carbon_copy_rels ccr (cost=0.00..8.05 rows=2 width=4)
Filter: (user_id = 1001)
-> Index Scan using tbl_reimbursements_pkey on tbl_reimbursements s (cost=0.28..8.30 rows=1 width=8)
Index Cond: (id = ccr.reimbursement_id)