QUERY PLAN
Sort (cost=37.73..37.78 rows=20 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=20 width=34)
Filter: (contract_id = ANY ('{4471,4470,4465,4464,4463,4461,4459,4458,4456,4452,4451,4449,4447,4445,4441,4440,4439,4438,4435,4432}'::integer[]))