What does "bedpost" mean?

Bedpost: Anciently, a post or pin on each side of the bed to keep the clothes from falling off. See Bedstaff. Brewer.

Sources