Should we create some user-friendly macros for the error field codes? Ihave a feeling that PGXYZ_SQLSTATE may make for better code than just 'C'.
-- Peter Eisentraut peter_e(at)gmx(dot)net