QUERY PLAN
Unique (cost=58.44..58.47 rows=6 width=4)
-> Sort (cost=58.44..58.46 rows=6 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.29..58.37 rows=6 width=4)
-> Seq Scan on tbl_reimbursement_carbon_copy_rels ccr (cost=0.00..8.55 rows=6 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_reimbursements_pkey on tbl_reimbursements s (cost=0.29..8.30 rows=1 width=8)
Index Cond: (id = ccr.reimbursement_id)