QUERY PLAN
Sort (cost=80.26..80.29 rows=14 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..79.99 rows=14 width=26)
Filter: (contract_id = ANY ('{4433,4457,4446,4453,4399,4467,4476,4478,4462,4479,4480,4481,4484}'::integer[]))