RE: [BUGS] Update is not atomic

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: [BUGS] Update is not atomic
Дата
Msg-id 3705826352029646A3E91C53F7189E32016681@sectorbase2.sectorbase.com
обсуждение исходный текст
Ответы Re: RE: [BUGS] Update is not atomic  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
> Problem can be demonstrated by following example
> 
> 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

We use uniq index for UK/PK but shouldn't. Jan?

Vadim


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

Предыдущее
От: Jason Tishler
Дата:
Сообщение: Re: [current] readline breakage
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Problem with reading startup packet after fork