QUERY PLAN
Sort (cost=38.23..38.29 rows=24 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.67 rows=24 width=34)
Filter: (contract_id = ANY ('{4240,4234,4236,4239,4242,4217,4220,4222,4225,4229,4228,4231,4216,4215,4219,4244,4246,4247,4251,4230}'::integer[]))