QUERY PLAN
Sort (cost=48.03..48.04 rows=4 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..47.99 rows=4 width=26)
Filter: (contract_id = ANY ('{3914,3789,4024,4132}'::integer[]))