QUERY PLAN
Sort (cost=40.06..40.06 rows=1 width=686)
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=35.51..40.05 rows=1 width=686)
Hash Cond: (p.created_by = tbl_users.id)
-> HashAggregate (cost=25.25..27.25 rows=200 width=4)
Group Key: p.created_by
-> HashAggregate (cost=22.75..24.75 rows=200 width=4)
Group Key: p.created_by
-> Seq Scan on tbl_erp_bank_change_logs p (cost=0.00..20.20 rows=1020 width=4)
-> Hash (cost=10.25..10.25 rows=1 width=682)
-> Seq Scan on tbl_users (cost=0.00..10.25 rows=1 width=682)
Filter: (user_status = '1'::type_global_user_status)