QUERY PLAN
Sort (cost=83.31..83.36 rows=16 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..83.00 rows=16 width=26)
Filter: (contract_id = ANY ('{4094,4046,4044,4300,4129,2635,3761,4047,3336,4048,4008,2513,2840,2277,4443}'::integer[]))