QUERY PLAN
Group (cost=21.08..22.49 rows=51 width=39)
Group Key: u.pinyin1, u.namecut1, u.pinyin2, u.namecut2, u.pinyin3, u.namecut3, u.pinyin4, u.namecut4, sgr.sales_id, sgr.group_id
-> Sort (cost=21.08..21.21 rows=51 width=39)
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, sgr.sales_id, sgr.group_id
-> Hash Right Join (cost=2.15..19.64 rows=51 width=39)
Hash Cond: (u.id = sgr.sales_id)
-> Seq Scan on tbl_users u (cost=0.00..16.44 rows=144 width=35)
-> Hash (cost=1.51..1.51 rows=51 width=8)
-> Seq Scan on tbl_sales_group_relationships sgr (cost=0.00..1.51 rows=51 width=8)