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