QUERY PLAN
Sort (cost=37.82..37.87 rows=23 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=23 width=34)
Filter: (contract_id = ANY ('{4463,4447,4376,4374,4350,4293,4295,4250,4240,4145,4136,4122,4103,4098,4017,4056,4000,3969,3936,3917}'::integer[]))