QUERY PLAN
Sort (cost=12.42..12.43 rows=2 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..12.41 rows=2 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{3232,2865,2776,1934,1872,1843,1842,1756,1697}'::integer[])))