QUERY PLAN
Sort (cost=38.20..38.25 rows=23 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.67 rows=23 width=34)
Filter: (contract_id = ANY ('{4240,4145,4136,4122,4103,4098,4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,4118}'::integer[]))