Abstract: A safety railing for installation about a roof edge of a building. Vertically extending stanchion members are mounted to wall brackets by pivoting links. These swing outwardly in response to an impact on the railing at the upper ends of the stanchions, so that a combined pull-out and shear loading is applied to the wall bracket. This effectively increases the load-bearing capacity of the fasteners which attach the bracket to the wall. The swinging link member may be a pivoting hook, and this detachably engages a horizontally-extending pivot pin which is mounted to a middle portion of the stanchion.