QUERY PLAN
Seq Scan on tbl_cases (cost=0.00..286.89 rows=1 width=8)
Filter: ((case_status <> ALL ('{5,6}'::integer[])) AND (client_id = 12))