Re: Serializable Transaction Anomoly

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Serializable Transaction Anomoly
Дата
Msg-id c8b162966097d43e7d77f39f7a9f206f64a0572f.camel@cybertec.at
обсуждение исходный текст
Ответ на Serializable Transaction Anomoly  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Serializable Transaction Anomoly
Список pgsql-docs
On Tue, 2024-11-05 at 18:41 +0000, Daniel Bickler wrote:
> The way I interpreted the documentation, the example I ran into was a false negative
> according to the definition of a serialization anomaly, because it’s serial in one
> ordering but not the other which seems incorrect with “all possible”.
>  
> I think where I don’t fully understand is the documentation seems to imply all serial
> orderings must be valid to commit a SERIALIZABLE transaction but it seems like just
> one serial ordering must be valid?

You seem to think that transactions are serializable if their result is consistent
with all possible serial execution orders.  But that is not so.

What the documentation says is:
It is an serialization anomaly (that is, not serializable) if the execution is
*in*consistent will all possible serial executions.

That implies: It is serializable if the execution is consistent with one serial
execution.

Yours,
Laurenz Albe



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