QUERY PLAN
Sort (cost=18.44..18.46 rows=9 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..18.30 rows=9 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4073,4071,4068,4065,4064,4055,4054,4050,4049,4061,4048,4047,4046,4044,4043,4036,4029,4035,4026,4024}'::integer[])))