QUERY PLAN
Sort (cost=32.55..32.60 rows=18 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..32.18 rows=18 width=34)
Filter: (contract_id = ANY ('{4398,4379,4439,4438,4437,4440,4441,4449,4376,4475,4442,4463,4472,4485,4502}'::integer[]))