Having a tooth pulled while pregnant

I'm 29 weeks pregnant  and a little over a month ago I had cavity filled on my front tooth, I was trying to hold out till after my baby was born but it started hurting pretty bad so I went and had it filled. My Dentist told me that he didn't really think the filling would help because the cavity was so deep but that he would try it anyways to see if it would hold out till after I deliver well today it started hurting again pretty bad and I'm probably going to have it pulled. I'm really worried about this because of the fact that I am pregnant and I'm also worried about the pain after the extraction and if they'll have to do x-rays. 
Has any had s tooth pulled while pregnant?