QUERY PLAN
Group (cost=2.76..3.09 rows=12 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=2.76..2.79 rows=12 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=1.38..2.55 rows=12 width=408)
Hash Cond: (sgr.sales_id = u.id)
-> Seq Scan on tbl_sales_group_relationships sgr (cost=0.00..1.12 rows=12 width=8)
-> Hash (cost=1.17..1.17 rows=17 width=404)
-> Seq Scan on tbl_users u (cost=0.00..1.17 rows=17 width=404)