Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> Does anybody know how I can get error codes using psql? I know that I
> could get error codes from server log or using libpq function. I just
> could not figure out a way to display them in psql.
"\set VERBOSITY verbose". Might be more than you want though...
regards, tom lane