I got a couple of these. You can replace the wood bit with any length you want and join two together by temporarily fixing other bits of wood lengthwise.
https://www.ffx.co.uk/Product/Get/Faithfull-Faitrestlewo-5023969307930-Steel-Wood-Heavy-Duty-Adjustable-Trestle#