QUERY PLAN
Sort (cost=222.88..226.23 rows=1337 width=57)
Sort Key: c.pinyin1, c.namecut1, c.pinyin2, c.namecut2, c.pinyin3, c.namecut3, c.pinyin4, c.namecut4, c.created_at DESC
-> HashAggregate (cost=140.09..153.46 rows=1337 width=57)
Group Key: c.id
-> Seq Scan on tbl_contacts c (cost=0.00..136.75 rows=1337 width=57)
Filter: (supplier_id IS NOT NULL)