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 ('{4484,4480,4479,4478,4476,4467,4462,4457,4453,4481,4446,4433,4399,4388,4373,4349,4291,4285,4257,4248}'::integer[])))