Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxd5f-0002yU-2L for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Apr 2017 17:26:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxd5e-0008Eq-7E for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Apr 2017 17:26:58 +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.84_2) (envelope-from ) id 1cxcyi-0003st-Cp for pgsql-bugs@postgresql.org; Mon, 10 Apr 2017 17:19:48 +0000 Received: from www.obiserver.hu ([217.173.42.16] helo=mx1.obiserver.hu) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcya-0004jo-A7 for pgsql-bugs@postgresql.org; Mon, 10 Apr 2017 17:19:47 +0000 Received: (qmail 19339 invoked by uid 730); 10 Apr 2017 19:19:37 +0200 Received: from obi5-4690k.alberlet.obiserver.lan (balazs@obiserver.hu@obi5-4690k.alberlet.obiserver.lan) by obiserver.hu (envelope-from , uid 730) with qmail-scanner-2.08st-OBi (clamdscan: 0.99.2/23284. spamassassin: 3.4.1. perlscan: 2.08st-OBi Clear:RC:1(10.17.10.20:balazs@obiserver.hu):. Processed in 0.00747 secs); 10 Apr 2017 19:19:37 +0200 (CEST) Received: from obi5-4690k.alberlet.obiserver.lan (HELO ?10.17.10.20?) (balazs@obiserver.hu@10.17.10.20) by obiserver.hu with AES128-SHA encrypted SMTP; 10 Apr 2017 19:19:37 +0200 Subject: Re: BUG #14616: error message without schema To: Tom Lane Cc: pgsql-bugs@postgresql.org References: <20170410082737.25934.58177@wrigleys.postgresql.org> <15352.1491842865@sss.pgh.pa.us> <285122a5-d291-65a5-6513-1f62c981d841@obiserver.hu> <16289.1491844189@sss.pgh.pa.us> From: =?UTF-8?B?w5Nkb3IgQmFsw6F6cw==?= Organization: OBiServer Kft. Message-ID: <7c8552e7-8dd9-a75f-85d1-714e5244ecc1@obiserver.hu> Date: Mon, 10 Apr 2017 19:19:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <16289.1491844189@sss.pgh.pa.us> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-Language: hu 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 OK, I understand. We have one database with 283 schemas. Every schema have an "account" table. Thanks for the \errverbose. Can I somehow in pgadmin? > =?UTF-8?B?w5Nkb3IgQmFsw6F6cw==?= writes: >> db=# create schema test; >> CREATE SCHEMA >> db=# create domain test.testdomain as varchar(200); >> CREATE DOMAIN >> db=# create table test.testtable (col test.testdomain); >> CREATE TABLE >> db=# insert into test.testtable (col) values ('test text'); >> INSERT 0 1 >> db=# alter domain test.testdomain add constraint testdomain_check check >> (value ~ 'a.+'); >> ERROR: column "col" of table "testtable" contains values that violate >> the new constraint > The data you're after *is* available in the extended fields of that error: > > db=# \errverbose > ERROR: 23514: column "col" of table "testtable" contains values that violate 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs