QUERY PLAN
Sort (cost=9.89..9.89 rows=1 width=25)
Sort Key: r.id
-> Merge Join (cost=4.23..9.88 rows=1 width=25)
Merge Cond: (u.id = r.user_id)
-> Index Scan using tbl_users_pkey on tbl_users u (cost=0.14..70.46 rows=25 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Sort (cost=4.08..4.09 rows=1 width=25)
Sort Key: r.user_id
-> Seq Scan on tbl_punch_leave_verify_rels r (cost=0.00..4.08 rows=1 width=25)
Filter: (punch_leave_id = 148)