The extra length provides stability, generally speaking, against holster "roll out" above the belt line. So a G19 length for a G26...even a G17 will often work better than a shorter holster. Experimentation will tell you what works best for your frame and body shape.
The length of the holster runs along the inguinal crease between hip and lower torso.