baby pushing when pooping and throwing up.

my 9 month old recently started doing this. everytime he tries to poop he pushes so hard he throws up. is this normal? he has his 9 mo apt thurs. i’ll be bringing it up to his pediatrician.