BUG #16868: Cannot find sqlstat error codes. - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16868: Cannot find sqlstat error codes.
Date
Msg-id 16868-5a3f2d3e054eb85c@postgresql.org
Whole thread Raw
Responses Re: BUG #16868: Cannot find sqlstat error codes.  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16868
Logged by:          bipsy Nair
Email address:      nbipin29@gmail.com
PostgreSQL version: 12.4
Operating system:   RDS and EC2
Description:

Hi,

I am not able to get any SQLSTATE Error code for Postgres on any versions on
RDS AWS or EC2 Postgres 10.

ERROR: No SQLSTATE genrated in Postgres. This was the error's which was
displayed.
=====
ERROR:  duplicate key value violates unique constraint
"pk_dml_error_logging"
DETAIL:  Key (id)=(1) already exists.

I am looking for a Error code like '23503' as per PG documentations
https://www.postgresql.org/docs/current/errcodes-appendix.html#ERRCODES-TABLE

Our developer needs a Error code generated so that they can trap in the
applications incase of any errors.
Please advice and provide a workaround.


pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16865: Regression: GIN Negated prefix search returns results that contain the search term
Next
From: Tom Lane
Date:
Subject: Re: BUG #16865: Regression: GIN Negated prefix search returns results that contain the search term