QUERY PLAN
Sort (cost=28.96..29.01 rows=20 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..28.53 rows=20 width=30)
Filter: (contract_id = ANY ('{4141,4133,4127,4126,4123,4122,4115,4110,4103,4102,4101,4098,4088,4085,4090,4081,4077,4076,4075,4070}'::integer[]))