QUERY PLAN
Sort (cost=12.74..12.76 rows=8 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..12.62 rows=8 width=26)
Filter: (contract_id = ANY ('{3849,3848,3847,3834,2364,2216,2198,2114}'::integer[]))