I just bought a very old home. The bathroom is extremely small so to give it a little more room I thought I would install a pedelstal sink in there. My problem is the plumbing does not go into the wall. It comes up from the floor so the P trap is making the sink set out 2 inches from the wall. It's unsafe and also doesn't give much room in front of the toilet.

Is there any way besides moving the plumbing to the wall that I can get the sink to set back against the wall?

Thanks for the advice if there is any.