You are correct. Early on, the character was referred to as Goober Beasley, then later changed to Goober Pyle. For whatever reason, the writers changed the names of several recurring characters. Floyd the Barber's name was Floyd Lawson for most of the series, however, he was initially known as Floyd Colby. Hope Summers' character changed names several times - she was called Bertha Edwards, Clara Johnson, and Clara Edwards, along with other names.
There is an episode of “Leave It To Beaver” in which Beaver gets a haircut. The barber is Floyd, the same character he played on the Griffith show.
“Floyd the Barber’s name was Floyd Lawson for most of the series”
Lawson is a common name in the Mt. Airy part of NC.