QUERY PLAN
Sort (cost=18.39..18.41 rows=7 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..18.30 rows=7 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4241,4235,4233,4226,4213,4204,4211,4207,4200,4199,4198,4197,4193,4192,4191,4176,4168,4159,4157,4156}'::integer[])))