Zeugswetter Andreas SB wrote:
>
> On the other hand, what hinders you from using a "speaking" name for the
> constraint ?
>
> postgres=# create table aa (id int, constraint "for Social Security number" unique (id));
> NOTICE: CREATE TABLE/UNIQUE will create implicit index 'for Social Security number' for table 'aa'
> CREATE
> postgres=# insert into aa values (1);
> INSERT 23741 1
> postgres=# insert into aa values (1);
> ERROR: Cannot insert a duplicate key into unique index for Social Security number
I might want the message to be in some other language ...
I might even want the language to depend on CURRENT_USER.
-------------
Hannu