QUERY PLAN
Sort (cost=27.00..27.02 rows=10 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..26.83 rows=10 width=34)
Filter: (contract_id = ANY ('{4482,4477,4475,4474,4473,4472,4471,4470,4469,4468}'::integer[]))