QUERY PLAN
Sort (cost=23.97..24.01 rows=18 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..23.59 rows=18 width=30)
Filter: (contract_id = ANY ('{4072,4070,4042,4062,4052,4059,4066,4067,4051,3940,3928,3927,3963,4041,4069,4023,4045,4033}'::integer[]))