QUERY PLAN
Sort (cost=30.66..30.71 rows=20 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..30.23 rows=20 width=30)
Filter: (contract_id = ANY ('{4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,3756,3773,3747,3727,3726,3704,3663}'::integer[]))