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