QUERY PLAN
Sort (cost=85.04..85.09 rows=21 width=28)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..84.58 rows=21 width=28)
Filter: (contract_id = ANY ('{4024,4022,4021,4020,4028,4027,4009,4005,4002,4016,4008,3998,3997,3995,3993,3989,3984,3980,3979,3978}'::integer[]))