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,4128,4127,4126,4124,4123,4122,4121,4119,4115,4110,4108,4107,4104,4103,4102,4101,4098,4100}'::integer[]))