Re: Atomicity?

Поиск
Список
Период
Сортировка
От Naz Gassiep
Тема Re: Atomicity?
Дата
Msg-id 44F34B5D.8090906@mira.net
обсуждение исходный текст
Ответ на Re: Atomicity?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Peter Eisentraut wrote:

  Naz Gassiep wrote:


    If the violation of the constraint really is being caused
WITHIN the query, doesn't that violate the principle of atomicity?
I.e., operations and entities should be considered a single entire
construct rather than a collection of smaller, discrete parts.



The principle of atomicity merely says that transactions are either
performed entirely or not at all.  If the transaction is not performed,
then there is no violation of atomicity.



    conwatch=# UPDATE replies SET rgt = rgt + 2 WHERE postid = 18 AND rgt


      = 11;


    ERROR:  duplicate key violates unique constraint "replies_rgt_postid"



This is a well-known deficiency in PostgreSQL.  You will have to work
around it somehow (by changing the query, the schema, or the index).


Do we have an ETA on fixing it? Or is it a long term outstanding issue
with no ETA as yet?
Thanks for the reply,
- Naz

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Atomicity?
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Atomicity?