Vertical support for a mattress frame (7)
I believe the answer is:
bedpost
(Other definitions for bedpost that I've seen before include "Corner support for sleeper" , "support in retirement" , "one possibly sharing our secrets?" , "Upright support found in sleeping chamber" , "Supporter in retirement" .)