QUERY PLAN
Sort (cost=31.00..31.01 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=14.11..30.98 rows=3 width=48)
Hash Cond: (tbl_users.id = tbl_documents.created_by)
-> Seq Scan on tbl_users (cost=0.00..16.80 rows=25 width=44)
Filter: (user_status = ANY ('{1,2}'::type_global_user_status[]))
-> Hash (cost=13.93..13.93 rows=15 width=4)
-> HashAggregate (cost=13.62..13.78 rows=15 width=4)
Group Key: tbl_documents.created_by
-> Seq Scan on tbl_documents (cost=0.00..12.50 rows=450 width=4)