QUERY PLAN
Sort (cost=20.31..20.34 rows=13 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..20.07 rows=13 width=30)
Filter: (contract_id = ANY ('{4031,4034,3706,4115,4107,4122,4126,4128,4017}'::integer[]))