QUERY PLAN
Sort (cost=18.04..18.06 rows=10 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..17.87 rows=10 width=30)
Filter: (contract_id = ANY ('{4074,4073,4072,4070,4069,4067,4066,4063,4062,4060}'::integer[]))