pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14616: error message without schema
5+ messages / 3 participants
[nested] [flat]
* BUG #14616: error message without schema
@ 2017-04-10 08:27 balazs@obiserver.hu
2017-04-10 16:47 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: balazs@obiserver.hu @ 2017-04-10 08:27 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14616
Logged by: Balazs Odor
Email address: balazs@obiserver.hu
PostgreSQL version: 9.6.2
Operating system: Debian
Description:
Command "ALTER DOMAIN ... ADD CONSTRAINT ..." return an error message with
column and table data, but missing the schema data.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14616: error message without schema
2017-04-10 08:27 BUG #14616: error message without schema balazs@obiserver.hu
@ 2017-04-10 16:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 16:58 ` Re: BUG #14616: error message without schema Ódor Balázs <balazs@obiserver.hu>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2017-04-10 16:47 UTC (permalink / raw)
To: balazs@obiserver.hu; +Cc: pgsql-bugs
balazs@obiserver.hu writes:
> Command "ALTER DOMAIN ... ADD CONSTRAINT ..." return an error message with
> column and table data, but missing the schema data.
Could you be more specific about which error message you're concerned about?
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14616: error message without schema
2017-04-10 08:27 BUG #14616: error message without schema balazs@obiserver.hu
2017-04-10 16:47 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-04-10 16:58 ` Ódor Balázs <balazs@obiserver.hu>
2017-04-10 17:09 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: Ódor Balázs @ 2017-04-10 16:58 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
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
I think this is the exact error message:
ERROR: column "col" of table "test"."testtable" contains values that
violate the new constraint
Best regards,
Balazs
> balazs@obiserver.hu writes:
>> Command "ALTER DOMAIN ... ADD CONSTRAINT ..." return an error message with
>> column and table data, but missing the schema data.
> Could you be more specific about which error message you're concerned about?
>
> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14616: error message without schema
2017-04-10 08:27 BUG #14616: error message without schema balazs@obiserver.hu
2017-04-10 16:47 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 16:58 ` Re: BUG #14616: error message without schema Ódor Balázs <balazs@obiserver.hu>
@ 2017-04-10 17:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 17:19 ` Re: BUG #14616: error message without schema Ódor Balázs <balazs@obiserver.hu>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2017-04-10 17:09 UTC (permalink / raw)
To: Ódor Balázs <balazs@obiserver.hu>; +Cc: pgsql-bugs
=?UTF-8?B?w5Nkb3IgQmFsw6F6cw==?= <balazs@obiserver.hu> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14616: error message without schema
2017-04-10 08:27 BUG #14616: error message without schema balazs@obiserver.hu
2017-04-10 16:47 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 16:58 ` Re: BUG #14616: error message without schema Ódor Balázs <balazs@obiserver.hu>
2017-04-10 17:09 ` Re: BUG #14616: error message without schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-04-10 17:19 ` Ódor Balázs <balazs@obiserver.hu>
0 siblings, 0 replies; 5+ messages in thread
From: Ódor Balázs @ 2017-04-10 17:19 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
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==?= <balazs@obiserver.hu> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2017-04-10 17:19 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 08:27 BUG #14616: error message without schema balazs@obiserver.hu
2017-04-10 16:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 16:58 ` Ódor Balázs <balazs@obiserver.hu>
2017-04-10 17:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-04-10 17:19 ` Ódor Balázs <balazs@obiserver.hu>
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