QUERY PLAN
Sort (cost=23.87..23.88 rows=7 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..23.77 rows=7 width=34)
Filter: (contract_id = ANY ('{4485,4482,4477,4475,4474,4472,4466}'::integer[]))