QUERY PLAN
Sort (cost=21.00..21.03 rows=10 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..20.84 rows=10 width=30)
Filter: (contract_id = ANY ('{4122,4119,4108,4107,4103,4100,4093,4063,4051,4031}'::integer[]))