QUERY PLAN
Sort (cost=60.03..60.05 rows=8 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..59.91 rows=8 width=26)
Filter: (contract_id = ANY ('{4321,1186,1558,1930,195,4443}'::integer[]))