QUERY PLAN
Sort (cost=25.45..25.50 rows=20 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..25.02 rows=20 width=26)
Filter: (contract_id = ANY ('{4073,4079,4077,4072,4070,4069,4067,4066,4063,4062,4060,4059,4058,4057,4053,4052,4051,4045,4042,4041}'::integer[]))