postgresql: include error codes in log lines