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