Richard Huxton <dev(at)archonet(dot)com> writes:
> I don't believe there is one at present, but grep the source for elog() calls
> to see all of them. Be aware that the error reporting is being overhauled for
> 7.4 so you might want to start your study with the CVS version - see the
> archives of the hackers list for discussion.
In particular see
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h
for the current list of SQLSTATE error codes.
This set is still changing --- if you have any comments, please make
them on pgsql-hackers.
regards, tom lane