Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcpu-0001R9-UT for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Apr 2017 17:10:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxcpu-0000Gm-CS for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Apr 2017 17:10:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxcpC-0006HS-89 for pgsql-bugs@postgresql.org; Mon, 10 Apr 2017 17:09:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxcp9-0007uM-AQ for pgsql-bugs@postgresql.org; Mon, 10 Apr 2017 17:09:57 +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 v3AH9nCs016290; Mon, 10 Apr 2017 13:09:49 -0400 From: Tom Lane To: =?UTF-8?B?w5Nkb3IgQmFsw6F6cw==?= cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14616: error message without schema In-reply-to: <285122a5-d291-65a5-6513-1f62c981d841@obiserver.hu> References: <20170410082737.25934.58177@wrigleys.postgresql.org> <15352.1491842865@sss.pgh.pa.us> <285122a5-d291-65a5-6513-1f62c981d841@obiserver.hu> Comments: In-reply-to =?UTF-8?B?w5Nkb3IgQmFsw6F6cw==?= message dated "Mon, 10 Apr 2017 18:58:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16288.1491844189.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 10 Apr 2017 13:09:49 -0400 Message-ID: <16289.1491844189@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org =3D?UTF-8?B?w5Nkb3IgQmFsw6F6cw=3D=3D?=3D writes: > db=3D# create schema test; > CREATE SCHEMA > db=3D# create domain test.testdomain as varchar(200); > CREATE DOMAIN > db=3D# create table test.testtable (col test.testdomain); > CREATE TABLE > db=3D# insert into test.testtable (col) values ('test text'); > INSERT 0 1 > db=3D# alter domain test.testdomain add constraint testdomain_check check= =20 > (value ~ 'a.+'); > ERROR: column "col" of table "testtable" contains values that violate=20 > the new constraint The data you're after *is* available in the extended fields of that error: db=3D# \errverbose=20 ERROR: 23514: column "col" of table "testtable" contains values that viola= te the new constraint SCHEMA NAME: test TABLE NAME: testtable COLUMN NAME: col LOCATION: validateDomainConstraint, typecmds.c:2750 We've had multiple conversations about whether to include objects' schema names in the primary error message text, and so far the answer continues to be "no". There seem to be more people who would find it to be clutter than would find it to be useful. Certainly it wouldn't make sense to change that style decision for just this one message. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs