George,
> I am in the process of creating a batch file that will update some
> functions in a database for a remote user similar to:
>
> psql -o output dbname < functionupdate.sql
>
> Is there any way to save any ERROR and NOTICE messages to a file?
>
> The -o option doesn't capture this information.
You have to use command shell redirects.
For example, I commonly do in bash
psql -o output dbname < functionupdate.sql >out.dump
... which sends all the command responses to a file, allowing me to read only
the errors on the screen.
See a guide to your shell for more creative redirection.
--
Josh Berkus
Aglio Database Solutions
San Francisco