Extending 4x4 Deck Posts
What I did was drill axial holes in the center of the 4 X 4 ; push in one foot lengths copper tubing ( or steel conduit) halfway. Then drill matching holes into the extension 4 X 4 and push them onto the tubing . When connecting railings are added it has good strength. Select a hole size to give a tight fit with whatever tubing you use.