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 ('{3549,3537,3502,3493,3415,3392,3388,3384,3364,3363,3348,3327,3300,3250,3249,3247,3235,3232,3101,3112}'::integer[])))