QUERY PLAN
Sort (cost=50.47..50.49 rows=9 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..50.32 rows=9 width=26)
Filter: (contract_id = ANY ('{2988,3529,3665,3713,4026}'::integer[]))