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 ('{4486,4484,4480,4479,4478,4476,4467,4462,4457,4453,4481,4450,4443,4446,4444,4430,4426,4433,4424,4422}'::integer[])))