QUERY PLAN
Sort (cost=37.73..37.78 rows=20 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=20 width=34)
Filter: (contract_id = ANY ('{4122941,4177914,4123863,44471125,4482,4477,4475,44651134,4452,44401119,44411120,44381116,44421121,44391117,44371113,44361112,44291107,44281106,44271105,44341110}'::integer[]))