QUERY PLAN
Sort (cost=56.11..56.13 rows=8 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..55.99 rows=8 width=26)
Filter: (contract_id = ANY ('{4197,4360,4168,4467}'::integer[]))