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 ('{3826,3824,3804,3799,3794,3798,3786,3675,3644,3624,3622,3590,3586,3587,3551,3684,3534,3532,3523,3518}'::integer[]))