In riemannin geometry, we define distance function by minimizing the length of curves. However we have nondefinite metric on psedu-riemannian manifold, so we cannot define a length of a curve as riemannian manifold $$L(\gamma)=\int_a^b<\dot\gamma,\dot\gamma>^{\frac{1}{2}}dt$$ Then we also cannot define the distance function, and complete concept on pseudo-riemannian manifold.
So how we define a complete pseudo-riemannian manifold? Can we just substitute the length with $$L(\gamma)=\int_a^b|<\dot\gamma,\dot\gamma>|^{\frac{1}{2}}dt$$
Any advice is helpful. Thank you.