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 ('{3799,3807,3794,3793,3798,3788,3827,3785,3784,3786,3781,3779,3776,3775,3774,3772,3780,3769,3766,3765}'::integer[]))