Re: PostgreSQL not ACID compliant?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL not ACID compliant?
Дата
Msg-id 29391.1064094527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL not ACID compliant?  (Florian Weimer <fw@deneb.enyo.de>)
Ответы Re: PostgreSQL not ACID compliant?  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
Список pgsql-hackers
Florian Weimer <fw@deneb.enyo.de> writes:
> Is this a bug, or is SQLxx serializability defined in different terms?

Strictly speaking, we do not guarantee serializability because we do not
do predicate locking.  See for example
http://archives.postgresql.org/pgsql-general/2003-01/msg01581.php

AFAIK, no commercial database does predicate locking either, so we all
fall short of true serializability.  The usual solution if you need the
sort of behavior you're talking about is to take a non-sharable write
lock on the table you want to modify, so that only one transaction can
do the COUNT/INSERT at a time.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Can't Build 7.3.4 on OS X
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: 7.4beta2 vs 7.3.3