QUERY PLAN
Sort (cost=33.46..33.50 rows=17 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..33.11 rows=17 width=34)
Filter: (contract_id = ANY ('{4340,4342,4382,4384,4225,4051,4070,3568,3557,3654,3707,3766,3774,3973,4175,4449}'::integer[]))