QUERY PLAN
Sort (cost=24.55..24.57 rows=7 width=41)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..24.46 rows=7 width=41)
Filter: (contract_id = ANY ('{4237,4158,4135,4238,4232}'::integer[]))