| From: | Ódor Balázs <balazs(at)obiserver(dot)hu> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | pgsql-bugs(at)postgresql(dot)org | 
| Subject: | Re: BUG #14616: error message without schema | 
| Date: | 2017-04-10 16:58:43 | 
| Message-ID: | 285122a5-d291-65a5-6513-1f62c981d841@obiserver.hu | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | 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(at)obiserver(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2017-04-10 17:09:49 | Re: BUG #14616: error message without schema | 
| Previous Message | Tom Lane | 2017-04-10 16:47:45 | Re: BUG #14616: error message without schema |