QUERY PLAN
Sort (cost=20.94..20.95 rows=7 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..20.84 rows=7 width=30)
Filter: (contract_id = ANY ('{4079,4077,4072,2364,2216,2198,2114}'::integer[]))