Re: Update is not atomic

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Update is not atomic
Дата
Msg-id Pine.LNX.4.30.0106201758530.725-100000@peter.localdomain
обсуждение исходный текст
Ответ на Update is not atomic  (Victor Wagner <vitus@ice.ru>)
Ответы Re: Update is not atomic  (Victor Wagner <vitus@ice.ru>)
Список 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@gmx.net   http://funkturm.homeip.net/~peter

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Bug: the index on INTEGER field does not work (PG 7.1.2)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_dumpall problem