QUERY PLAN
Sort (cost=18.49..18.50 rows=7 width=44)
Sort Key: u.pinyin1 NULLS FIRST, u.namecut1 NULLS FIRST, u.pinyin2 NULLS FIRST, u.namecut2 NULLS FIRST, u.pinyin3 NULLS FIRST, u.namecut3 NULLS FIRST, u.pinyin4 NULLS FIRST, u.namecut4 NULLS FIRST
-> Group (cost=18.35..18.39 rows=7 width=44)
Group Key: u.id
-> Sort (cost=18.35..18.37 rows=7 width=44)
Sort Key: u.id
-> Hash Right Join (cost=9.17..18.26 rows=7 width=44)
Hash Cond: (turs.user_id = u.id)
Filter: ((turs.task_group_id = 195) OR (u.id = 1000))
-> Seq Scan on tbl_task_group_user_relationships turs (cost=0.00..7.78 rows=478 width=8)
-> Hash (cost=7.41..7.41 rows=141 width=44)
-> Seq Scan on tbl_users u (cost=0.00..7.41 rows=141 width=44)