QUERY PLAN
Sort (cost=24.80..24.85 rows=22 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..24.30 rows=22 width=30)
Filter: (contract_id = ANY ('{4038,4037,3810,4040,3994,4007,4014,4012,3457,3908,3889,3922,3956,3969,3987,3991,4015,4025,4034}'::integer[]))