QUERY PLAN
Sort (cost=37.90..37.95 rows=21 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.44 rows=21 width=34)
Filter: (contract_id = ANY ('{4391,4405,4397,4380,4395,4402,4382,4370,4398,4384,4387,4389,4379,4374,4401,4392,4403,4406,4404,4376}'::integer[]))