QUERY PLAN
Sort (cost=14.26..14.27 rows=5 width=52)
Sort Key: u.pinyin1 NULLS FIRST, u.namecut1 NULLS FIRST, u.pinyin2 NULLS FIRST, u.namecut2 NULLS FIRST, u.pinyin3 NULLS FIRST, u.namecut3 NULLS FIRST, u.pinyin4 NULLS FIRST, u.namecut4 NULLS FIRST
-> Hash Right Join (cost=12.82..14.20 rows=5 width=52)
Hash Cond: (egr.engineer_id = u.id)
-> Seq Scan on tbl_engineer_group_relationships egr (cost=0.00..1.27 rows=27 width=4)
-> Hash (cost=12.75..12.75 rows=5 width=48)
-> Hash Join (cost=4.94..12.75 rows=5 width=48)
Hash Cond: (u.id = aa.user_id)
-> Seq Scan on tbl_users u (cost=0.00..7.74 rows=30 width=48)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=4.62..4.62 rows=25 width=4)
-> Seq Scan on tbl_auth_assignments aa (cost=0.00..4.62 rows=25 width=4)
Filter: ((item_name)::text = 'Engineer'::text)