QUERY PLAN
Sort (cost=11.32..11.32 rows=2 width=16)
Sort Key: remind_date
-> Seq Scan on tbl_service_contract_remind_dates (cost=0.00..11.31 rows=2 width=16)
Filter: ((NOT reminded) AND (contract_id = ANY ('{4504,4476,4467,4462,4457,4481,1186}'::integer[])))