|
|
|
@ -417,7 +417,7 @@ insert into atacc1 (test) values (2); |
|
|
|
|
-- add a unique constraint (fails) |
|
|
|
|
alter table atacc1 add constraint atacc_test1 unique (test); |
|
|
|
|
NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index "atacc_test1" for table "atacc1" |
|
|
|
|
ERROR: could not create unique index |
|
|
|
|
ERROR: could not create unique index "atacc_test1" |
|
|
|
|
DETAIL: Table contains duplicated values. |
|
|
|
|
insert into atacc1 (test) values (3); |
|
|
|
|
drop table atacc1; |
|
|
|
@ -485,7 +485,7 @@ insert into atacc1 (test) values (2); |
|
|
|
|
-- add a primary key (fails) |
|
|
|
|
alter table atacc1 add constraint atacc_test1 primary key (test); |
|
|
|
|
NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index "atacc_test1" for table "atacc1" |
|
|
|
|
ERROR: could not create unique index |
|
|
|
|
ERROR: could not create unique index "atacc_test1" |
|
|
|
|
DETAIL: Table contains duplicated values. |
|
|
|
|
insert into atacc1 (test) values (3); |
|
|
|
|
drop table atacc1; |
|
|
|
|