railing (n.)

"construction in which rails form an important part," early 15c., verbal noun from rail (v.2). Technically, railings (late 15c.) are horizontal, palings are vertical.