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 ('{4398,4401,4397,4395,4391,4416,4392,4387,4389,4384,4382,4380,4379,4376,4372,4370,4369,4368,4367,4365}'::integer[]))