QUERY PLAN
Unique (cost=15.89..15.90 rows=1 width=4)
-> Sort (cost=15.89..15.90 rows=1 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.15..15.88 rows=1 width=4)
-> Seq Scan on tbl_punch_repair_carbon_copy_rels ccr (cost=0.00..7.67 rows=1 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_punch_repairs_pkey on tbl_punch_repairs s (cost=0.15..8.17 rows=1 width=8)
Index Cond: (id = ccr.punch_repair_id)