make pgsql error code parsing locale-independent
Merge remote-tracking branch 'origin/master'