QUERY PLAN
Sort (cost=19.52..19.57 rows=20 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..19.09 rows=20 width=26)
Filter: (contract_id = ANY ('{3757,3756,3754,3753,3752,3773,3751,3747,3688,3743,3741,3739,3730,3727,3726,3728,3722,3721,3720,3719}'::integer[]))