BUG #16868: Cannot find sqlstat error codes.

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: nbipin29(at)gmail(dot)com
Subject: BUG #16868: Cannot find sqlstat error codes.
Date: 2021-02-15 23:57:23
Message-ID: 16868-5a3f2d3e054eb85c@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16868
Logged by: bipsy Nair
Email address: nbipin29(at)gmail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-02-16 00:27:46 Re: BUG #16865: Regression: GIN Negated prefix search returns results that contain the search term
Previous Message Tom Lane 2021-02-15 23:26:48 Re: BUG #16865: Regression: GIN Negated prefix search returns results that contain the search term