QUERY PLAN
Sort (cost=297.59..297.61 rows=5 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=289.67..297.54 rows=5 width=48)
Hash Cond: (tbl_users.id = tbl_cases.created_by)
-> Seq Scan on tbl_users (cost=0.00..7.80 rows=24 width=44)
Filter: (user_status = ANY ('{1,2}'::type_global_user_status[]))
-> Hash (cost=289.32..289.32 rows=28 width=4)
-> HashAggregate (cost=288.76..289.04 rows=28 width=4)
Group Key: tbl_cases.created_by
-> Seq Scan on tbl_cases (cost=0.00..267.41 rows=8541 width=4)