QUERY PLAN
Sort (cost=19.82..19.90 rows=30 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..19.09 rows=30 width=26)
Filter: (contract_id = ANY ('{3494,3848,3479,3079,3640,3429,3706,3614,3723,3687,3741,3704,3599,3772,3668,3566,3720,3554,3774,3617}'::integer[]))