this could be useful to verify the presence of the primary key
an info could be in this postgresql info found in
http://www.postgresql.org/docs/current/static/libpq-exec.html
The SQLSTATE code for the error. The SQLSTATE code identifies the type of error that has occurred; it can be used by front-end applications to perform specific operations (such as error handling) in response to a particular database error. For a list of the possible SQLSTATE codes, see Appendix A. This field is not localizable, and is always present.