Sort (cost=21.35..21.36 rows=3 width=48) |
Sort Key: tbl_users.pinyin1 NULLS FIRST, tbl_users.namecut1 NULLS FIRST, tbl_users.pinyin2 NULLS FIRST, tbl_users.namecut2 NULLS FIRST, tbl_users.pinyin3 NULLS FIRST, tbl_users.namecut3 NULLS FIRST, tbl_users.pinyin4 NULLS FIRST, tbl_users.namecut4 NULLS FIRST |
-> Hash Join (cost=13.51..21.33 rows=3 width=48) |
Hash Cond: (tbl_users.id = tbl_documents.created_by) |
-> Seq Scan on tbl_users (cost=0.00..7.74 rows=30 width=44) |
Filter: (user_status = ANY ('{1,2}'::type_global_user_status[])) |
-> Hash (cost=13.35..13.35 rows=13 width=4) |
-> HashAggregate (cost=13.09..13.22 rows=13 width=4) |
Group Key: tbl_documents.created_by |
-> Seq Scan on tbl_documents (cost=0.00..12.07 rows=407 width=4) |