pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: nbipin29@gmail.com
Subject: BUG #16868: Cannot find sqlstat error codes.
Date: Mon, 15 Feb 2021 23:57:23 +0000
Message-ID: <16868-5a3f2d3e054eb85c@postgresql.org> (raw)

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.



view thread (11+ messages)  latest in thread

Message-ID: <16868-5a3f2d3e054eb85c@postgresql.org>
Permalink:  ../16868-5a3f2d3e054eb85c@postgresql.org/
Also on:    postgresql.org/message-id/16868-5a3f2d3e054eb85c@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, nbipin29@gmail.com
  Subject: Re: BUG #16868: Cannot find sqlstat error codes.
  In-Reply-To: <16868-5a3f2d3e054eb85c@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox