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 ('{4439,4438,4440,4445,4441,4449,4459,4464,4447,4451,4460,4456,4452,4458,4461,4463,4465,4471,4470,4473}'::integer[]))