QUERY PLAN
Unique (cost=218.23..218.29 rows=11 width=4)
-> Sort (cost=218.23..218.26 rows=11 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.28..218.04 rows=11 width=4)
-> Seq Scan on tbl_approve_carbon_copy_rels ccr (cost=0.00..138.76 rows=11 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_approves_pkey on tbl_approves s (cost=0.28..7.21 rows=1 width=8)
Index Cond: (id = ccr.approve_id)