QUERY PLAN
Sort (cost=60.81..60.82 rows=4 width=28)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..60.77 rows=4 width=28)
Filter: (contract_id = ANY ('{3836,3844,3835,3364}'::integer[]))