QUERY PLAN
Sort (cost=263.01..263.03 rows=6 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=255.12..262.94 rows=6 width=48)
Hash Cond: (tbl_users.id = tbl_cases.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=254.79..254.79 rows=26 width=4)
-> HashAggregate (cost=254.28..254.53 rows=26 width=4)
Group Key: tbl_cases.created_by
-> Seq Scan on tbl_cases (cost=0.00..235.42 rows=7542 width=4)