QUERY PLAN
Sort (cost=13.44..13.45 rows=5 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..13.38 rows=5 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{2909,2261,2326,2327,1012,2182,2566,2565,2627,2626,2564}'::integer[])))