QUERY PLAN
Unique (cost=259.32..259.38 rows=11 width=4)
-> Sort (cost=259.32..259.35 rows=11 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.29..259.13 rows=11 width=4)
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..167.75 rows=11 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_work_logs_pkey on tbl_work_logs s (cost=0.29..8.31 rows=1 width=8)
Index Cond: (id = ccr.work_log_id)