QUERY PLAN
Sort (cost=10.50..10.51 rows=4 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..10.46 rows=4 width=26)
Filter: (contract_id = ANY ('{3852,3850,3849,3848}'::integer[]))