Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiN3m-0004Ez-8k for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 16:54:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiN3j-0008JP-WD for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 16:54:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiN3j-0008JI-Ms for pgsql-bugs@lists.postgresql.org; Wed, 25 Jul 2018 16:54:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiN3h-0006hK-1c for pgsql-bugs@lists.postgresql.org; Wed, 25 Jul 2018 16:54:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6PGsaXw005769; Wed, 25 Jul 2018 12:54:36 -0400 From: Tom Lane To: Andres Freund cc: Benjamin Coutu , pgsql-bugs@lists.postgresql.org Subject: Re: Domain Constraint Violation Error Messages In-reply-to: <20180725155916.rz47nbyh2jwggdgo@alap3.anarazel.de> References: <20180725155145.BCBFB5FB09@mx.zeyos.com> <20180725155916.rz47nbyh2jwggdgo@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 25 Jul 2018 08:59:16 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5767.1532537676.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Jul 2018 12:54:36 -0400 Message-ID: <5768.1532537676@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund 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_MoZxuz4S0BO3Zk= PAeLoQ9rPxKHG%3D728eoQ%40mail.gmail.com regards, tom lane