QUERY PLAN
Sort (cost=60.85..60.86 rows=6 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..60.77 rows=6 width=26)
Filter: (contract_id = ANY ('{1186,3108,3803,3854}'::integer[]))