Bedpost -

Originally, bedposts served essential practical functions rather than just being ornamental:

Drapes supported by these posts were also used to keep out insects or debris falling from thatched roofs. bedpost

Introduced in the 15th century, elaborate four-poster beds were often massive and highly decorated to signal the wealth and nobility of the owner. Common Styles drafty medieval homes

In large, drafty medieval homes, tall bedposts supported heavy curtains or tapestries to trap heat and provide a private sleeping chamber. bedpost

Bedposts vary significantly in height and design, often defining the entire look of the bed: BEDPOST | English meaning - Cambridge Dictionary