QUERY PLAN
Sort (cost=25.48..25.53 rows=21 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..25.02 rows=21 width=30)
Filter: (contract_id = ANY ('{4079,4077,4074,4040,4007,3976,3970,3968,3948,3933,3907,3898,3894,3990,3860,3859,3847,3843,3830,3826}'::integer[]))