QUERY PLAN
Sort (cost=24.05..24.10 rows=21 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..23.59 rows=21 width=30)
Filter: (contract_id = ANY ('{3986,3614,3918,3996,4000,4006,3058,3901,3893,3939,3951,3974,3923,3982,3981,3985,3988,3992}'::integer[]))