QUERY PLAN
Sort (cost=37.93..37.98 rows=22 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.44 rows=22 width=34)
Filter: (contract_id = ANY ('{4413,4409,4415,4423,4416,4411,4410,4407,4412,4439,4425,4427,4431,4432,4435,4420,4421,4438,4440,4441}'::integer[]))