QUERY PLAN
Sort (cost=28.99..29.04 rows=21 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..28.53 rows=21 width=30)
Filter: (contract_id = ANY ('{4141,4133,4122,4103,4098,4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,4118,3756}'::integer[]))