scusami, ma mi pare abbastanza evidente l'errore

se rileggi con attenzione il messaggio d'errore che hai postato ti viene scritto il perché del problema

ERROR: sql error DETAIL: ERROR: la funzione menu.get_nav_menu(integer) non esiste LINE 1: SELECT * FROM menu.get_nav_menu( $1 ) ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. QUERY: SELECT * FROM menu.get_nav_menu( $1 ) CONTEXT: PL/pgSQL function "get_nav_menu" line 32 at RETURN QUERY CONTEXT: funzione SQL "f_get_nav_menu" istruzione 1
Tu richiami la stored procedure passando un solo argomento, ma dopo la tua modifica va richiamata con 2 argomenti