Sudo thinks that postgres is a command. You should use probably `-u` to specify user.