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 ('{4351,4349,4378,4338,4335,4334,4332,4328,4327,4325,4322,4321,4320,4319,4318,4316,4313,4312,4308,4305}'::integer[])))