QUERY PLAN
Sort (cost=30.69..30.74 rows=21 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..30.23 rows=21 width=30)
Filter: (contract_id = ANY ('{4063,4038,4031,4017,4004,3893,3845,3807,3784,3780,3722,3690,3653,3631,3561,3515,3499,3424,3411,3480}'::integer[]))