S.H.
Weaning a baby, will not suddenly make a baby sleep all night.
Our Pediatrician says to feed on-demand for the 1st year....and that breastmilk/Formula was a baby's PRIMARY source of nutrition... NOT solids and NOT other liquids. That is what I did with both my kids.
Next, 6 months old is a Growth-spurt time... in which their intake needs increases and they get hungrier and need to feed... so that their intake keeps pace WITH their development.
And no, I do not agree with your Ped saying that a baby "should" be able to sleep all night without feeding. That is not correct, and especially if a baby is going through a growth-spurt... which occurs every 3 months or so. AND, all babies have different appetites, daily. My kids had ginormous appetites and grew like weeds... and they needed feedings and were literally hungry.
It is not creating a "habit." A baby needs what it needs, and if hungry and growing.
Next, a baby often starts teething at 6 months. So that can wake them too.
And, at 6 months, it is ALSO a time where they are changing developmentally and hitting milestones, and THIS can tweak their sleep too.
So MANY things going on, for the baby, at the same time. It not being easy for a baby.
Sleeping "through the night" for a baby, means sleeping 5-6 hours straight. Each baby being different.
I would not "wean" a baby, when they are going through a growth-spurt. It is not the right timing. AND at this age, they also start "separation-anxiety." Which is when my kids as babies started.
Your baby is normal.
This is also according to our Pediatrician.
Also, a parent's snoring can also wake a baby, too.
All the best,
Susan