QUERY PLAN
Sort (cost=52.34..52.35 rows=5 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..52.28 rows=5 width=26)
Filter: (contract_id = ANY ('{3746,3803,3857,3900,3967}'::integer[]))