QUERY PLAN
Sort (cost=37.79..37.84 rows=22 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=22 width=34)
Filter: (contract_id = ANY ('{4116,4118,4117,3902,4077,4063,4439,3992,3983,4113,4114,3929,4030,4034,4075,3934,4014,4031,4470,4447}'::integer[]))