Re: AW: Possible feature? - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: AW: Possible feature?
Date
Msg-id 3B4C4D93.AA4F8936@tm.ee
Whole thread Raw
In response to AW: Possible feature?  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: Possible feature?
Next
From: Mark Volpe
Date:
Subject: Re: Postgresql bulk fast loader