QUERY PLAN
Sort (cost=38.23..38.29 rows=24 width=42)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.67 rows=24 width=42)
Filter: (contract_id = ANY ('{4237,4138,4158,4134,4135,4141,4171,4194,4189,4180,4190,4184,4186,4183,4203,4218,4196,4238,4173,4232}'::integer[]))