Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified
Дата
Msg-id 202108302051.7ernwkr66lx7@alvherre.pgsql
обсуждение исходный текст
Ответ на [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified  (David Christensen <david.christensen@crunchydata.com>)
Ответы Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified  (David Christensen <david.christensen@crunchydata.com>)
Список pgsql-hackers
On 2021-Aug-13, David Christensen wrote:

> Both bugs #16676[1] and #17141[2] illustrate that the combination of
> SKIP LOCKED and FETCH FIRST WITH TIES break expectations when it comes
> to rows returned to other sessions accessing the same row.  Since this
> situation is detectable from the syntax and hard to fix otherwise,
> forbid for now, with the potential to fix in the future.

I think we should do this, given that it has show potential to bite
people.  We should also add a small mentioned to this in the docs, as in
the attached.

What do others think?

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: reporting TID/table with corruption error
Следующее
От: David Christensen
Дата:
Сообщение: Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified