QUERY PLAN
Unique (cost=166.17..166.22 rows=11 width=4)
-> Sort (cost=166.17..166.20 rows=11 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.28..165.98 rows=11 width=4)
-> Seq Scan on tbl_approve_carbon_copy_rels ccr (cost=0.00..90.72 rows=11 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_approves_pkey on tbl_approves s (cost=0.28..6.84 rows=1 width=8)
Index Cond: (id = ccr.approve_id)