QUERY PLAN
Sort (cost=50.38..50.39 rows=5 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..50.32 rows=5 width=26)
Filter: (contract_id = ANY ('{4109,4131,4112,4130,4111}'::integer[]))