When adding length to a post, consider that the post is subject to two kinds of stress, vertical or load-bearing stress and horizontal or shear stress. Depending on the location and length of the addition, it's usually better to completely replace the post if possible. If it's a repair you're making, or the lengthening is not substantial, you can connect the post with another section of wood using a rabbet or half-lap joint -- sometimes also called a scarf joint. This type of joint supports the post vertically and horizontally, counteracting the shear effect to a certain degree. Doweling is another way to add shear strength. Post caps and metal plates are another way to lengthen posts. Add a wooden sleeve overlay to any of these methods, and the post should be strong enough to do its job.