On Thu, 2002-12-12 at 05:36, Francois Suter wrote:
> My question is then: is it possible to retrieve this error code, especially
> in PHP, where it seems that the only function related to errors is
> pg_errormessage() which only returns a string with no error code.
PostgreSQL does not currently support error codes. There is some talk of
implementing them for 7.4, but I don't think that's set in stone yet. In
the interim, perhaps you can grep the error string?
Cheers,
Neil