QUERY PLAN
Sort (cost=56.48..56.49 rows=2 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..56.48 rows=2 width=26)
Filter: (contract_id = ANY ('{3364,3844}'::integer[]))