  Two pseudo-Riemannian metrics $g $ and $\bar g$ are geodesically equivalent,
if they share the same (unparameterized) geodesics. We give a complete local
description of such metrics which solves the natural generalisation of Beltrami
problem for pseudo-Riemannian metrics.
