QUERY PLAN
Group (cost=158.46..214.56 rows=2040 width=408)
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=158.46..163.56 rows=2040 width=408)
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 Left Join (cost=10.45..46.32 rows=2040 width=408)
Hash Cond: (sgr.sales_id = u.id)
-> Seq Scan on tbl_sales_group_relationships sgr (cost=0.00..30.40 rows=2040 width=8)
-> Hash (cost=10.20..10.20 rows=20 width=404)
-> Seq Scan on tbl_users u (cost=0.00..10.20 rows=20 width=404)