QUERY PLAN
Sort (cost=18.56..18.58 rows=5 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..18.51 rows=5 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4417,4414,4408,4400,4399,4396,4394,4393,4390,4388,4386,4385,4373,4377,4366,4364,4360,4359,4363,4357}'::integer[])))