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