QUERY PLAN
Group (cost=11.74..13.04 rows=47 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=11.74..11.86 rows=47 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.06..10.44 rows=47 width=39)
Hash Cond: (u.id = sgr.sales_id)
-> Seq Scan on tbl_users u (cost=0.00..7.39 rows=139 width=35)
-> Hash (cost=1.47..1.47 rows=47 width=8)
-> Seq Scan on tbl_sales_group_relationships sgr (cost=0.00..1.47 rows=47 width=8)