I'm looking to extend this pvc waste pipe coming out of the wall to accommodate my new bathroom sink. It's too short as it is and doesn't quite reach the new p-trap placement. Does anyone know how this is connected? Is it glued or cemented in? How do I remove and replace it with a longer piece and ensure I won't have a leak?
Appears like a galvanized steel connection in the wall.
UPDATE: I was able to twist and turn and get the drain pipe out far enough to make a decent connection (fully extended about 7.5" out). The pipe wasn't threaded, just jammed in there. Not sure how much of the pipe is left inside though, may be a concern.
Is it OK to use this extended pipe for my connection?
Do I need to glue or seal anything? Or should I take completely out and install a new pipe?