Zonie is obviously correct. However, on a flintlock, the bolster is on the inside of the lock plate, and is filed to marry the line of the barrel to the lock. There is a curved cutout for the frizzen pan, which is often welded or screwed into place, or both. On Percussion locks, the bolster is often cut out to provide a place for a separate drum to be screwed into the barrel, with the nipple screwed into the drum. On patent breeches, it is as you describe, with a portion either cast as part of the breechplug and tang, or welded to the side of the barrel providing a flash channel to the main charge chamber, and a place to screw in the nipple. Since a conversion of a flint lock will have a bolster on the inside of the lock plate, with a cutout for the flash pan, the flash pan is removed. Depending on design, additional metal may have to be added to fill any hole left between the lock plate and barrel when the flash pan was removed. This extra metal may be part of the modified breech, or a separate steel plate welded to the inside of the lock to seal the area, often leaving the cutout for the flashpan still visible. That is often the conclusive proof needed to tell that a gun has been converted from flint to percussion.
The analogy to a pillow at your head board on your bed is probably the best way to remember the purpose of the bolster, and its definition. The pillow provides a support for you head, and keeps things from falling down the crack at the end of the mattress. A Bolster supports the lock, and keeps things from falling down in the crack between the barrel and the lock plate.