From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Benjamin Coutu <ben.coutu@zeyos.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Domain Constraint Violation Error Messages
Date: Wed, 25 Jul 2018 12:54:36 -0400
Message-ID: <5768.1532537676@sss.pgh.pa.us> (raw)
In-Reply-To: <20180725155916.rz47nbyh2jwggdgo@alap3.anarazel.de>
References: <20180725155145.BCBFB5FB09@mx.zeyos.com>
<20180725155916.rz47nbyh2jwggdgo@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> On 2018-07-25 17:51:21 +0200, Benjamin Coutu wrote:
>> Well, the problem is that the underlying column is not referenced, and neither is the table. That's the issue right there.
> True. I didn't yet have my first coffee, sorry for that :). I think
> it'd possibly not be too hard to add support for naming the TABLE. Would
> that already be helpful enough for you?
I think we'd be better off casting this as a more generic "report the
location of execution-time errors" issue. See previous discussions
such as
https://www.postgresql.org/message-id/flat/CAD3a31WR8X1TpjR_MoZxuz4S0BO3ZkPAeLoQ9rPxKHG%3D728eoQ%40m...
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, ben.coutu@zeyos.com
Subject: Re: Domain Constraint Violation Error Messages
In-Reply-To: <5768.1532537676@sss.pgh.pa.us>
References: <20180725155145.BCBFB5FB09@mx.zeyos.com> <20180725155916.rz47nbyh2jwggdgo@alap3.anarazel.de> <5768.1532537676@sss.pgh.pa.us>
* 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