Re: BUG #1860: Insert failed due to unique index - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #1860: Insert failed due to unique index
Date
Msg-id 200509032118.15851.peter_e@gmx.net
Whole thread Raw
In response to BUG #1860: Insert failed due to unique index  ("Viswanath Ramineni" <v_ramineni@hotmail.com>)
Responses Re: BUG #1860: Insert failed due to unique index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Viswanath Ramineni wrote:
> I have a table with a primary key on id (integer) column and a unique
> index on varchar(10) column. Insertion fails when the value of the
> unique column is substring of an existing value. For example, if I
> have a row with the unique column value 'TEST1', it will not allow me
> insert another row with 'TEST' as the value for this column.

Please show the exact sequence of commands that leads to this situation.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #1861: Possible Incompatibly with NOD32 AV.
Next
From: Allan Wang
Date:
Subject: extra columns in intermediate nodes not being removed by top level of executor