QUERY PLAN
Sort (cost=19.55..19.60 rows=21 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..19.09 rows=21 width=26)
Filter: (contract_id = ANY ('{3834,3769,3756,3773,3747,3727,3726,3704,3663,3621,3617,3600,3574,3610,3582,3526,3503,3494,3430,3422}'::integer[]))