By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
1 rows affected
ERROR: Previous waypoint not available for path_id = 1
CONTEXT: PL/pgSQL function consecutive_check() line 7 at RAISE
ERROR: Previous waypoint not available for path_id = 3
CONTEXT: PL/pgSQL function consecutive_check() line 7 at RAISE
1 rows affected