@burcinc-- I was told the same as you when I had dental issues during my pregnancy. My dentist said that I can't have an x-ray while pregnant and gave me two options. I would either wait until after birth to have the root canal, or have the tooth removed.
First I said I would wait but the pain got a lot worse and my dentist was scared of infection. I ended up having the tooth removed. Thankfully it was a back molar, so the gap is not visible.
I'm surprised that @anamur was able to have the root canal. My experience is from four years back though. So maybe something has changed during that time and doctors have realized that it's not dangerous?
Is the verdict still out on root canal and pregnancy from the viewpoint of dentists?