Re: Question on error code selection in conflict detection - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Question on error code selection in conflict detection
Date
Msg-id CA+TgmobpXW3GB-QS_5Uecj3aeeQFcgo+z-PsU8n7pCq1QXBiSQ@mail.gmail.com
Whole thread Raw
In response to Re: Question on error code selection in conflict detection  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Question on error code selection in conflict detection
List pgsql-hackers
On Tue, Jun 10, 2025 at 2:09 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
> Can we instead try to use other suitable existing error codes?

Why?

I mean, I'm not 100% against using existing error codes, but I feel
like we might be distorting the meanings of the existing error codes.
If we used new error codes, then people could test for those and know
that they would get exactly these conditions and nothing else.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: CHECKPOINT unlogged data
Next
From: Shlok Kyal
Date:
Subject: Re: Skipping schema changes in publication