Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE
Дата
Msg-id 24728.1196287704@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE  ("Daniel Caune" <daniel.caune@ubisoft.com>)
Ответы Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE
Список pgsql-sql
"Daniel Caune" <daniel.caune@ubisoft.com> writes:
> It seems that, in certain condition, row (199,84) is shadowing row
> (3702,85);

This would be the expected behavior if row (199,84) were an updated
version of row (3702,85), but you couldn't see it yet in your current
transaction snapshot.  A plain SELECT would show the older version
(the current one according to the snapshot) while SELECT FOR UPDATE
would show the newest committed version.

I think you must have somehow got a corrupt-data situation with respect
to the commit status of these rows, but it's not real clear how.
Would you show us the xmin and xmax of the rows, and also the current
transaction counter?  (pg_controldata will give you a close-enough
idea of the latter.)
        regards, tom lane


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

Предыдущее
От: "Daniel Caune"
Дата:
Сообщение: Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Strang behaviour SELECT ... LIMIT n FOR UPDATE