Sanjay Bhatia <sbix(at)yahoo(dot)com> writes:
> The pg_dump command exits with a non-zero value when these NOTICEs show up
(a) I suppose you mean pg_restore.
(b) The NOTICEs have nothing to do with it. pg_restore exits with
status 1 no matter what. This is a bug, cf
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_restore.c.diff?r1=1.29&r2=1.30
regards, tom lane