Re: Update is not atomic

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Victor Wagner <vitus(at)ice(dot)ru>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Update is not atomic
Date: 2001-06-20 15:59:23
Message-ID: Pine.LNX.4.30.0106201758530.725-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Victor Wagner writes:

> create table a (a numeric primary key);
> insert into a values (1);
> insert into a values (2);
> insert into a values (3);
> insert into a values (4);
> update a set a=a+1 where a>2;
> ERROR: Cannot insert a duplicate key into unique index a_pkey

This is a known problem with unique contraints, but it's not easy to fix
it.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-06-20 16:00:32 Re: pg_dumpall problem
Previous Message Peter Eisentraut 2001-06-20 15:58:19 Re: Bug: the index on INTEGER field does not work (PG 7.1.2)