QUERY PLAN
Sort (cost=37.85..37.91 rows=24 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=24 width=34)
Filter: (contract_id = ANY ('{4485,4482,4477,4475,4474,4472,4469,4466,4442,4436,4437,4434,4428,4429,4419,4418,4383,4371,4346,4345}'::integer[]))