Are you looking for a cheap easy way to secure a weapon near your bed in case of an emergency? If you happen to have a bed with hollow bed posts, this may be an answer for you. User TeeDum wrote this tutorial with pictures on Instructables.com that shows how to maximize this available space.
He hinges the top of the bedpost to allow quick access inside. The space can accommodate a small hand gun, or any other valuables that you may want to stow away.