Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified
Date
Msg-id 202108302051.7ernwkr66lx7@alvherre.pgsql
Whole thread Raw
In response to [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified  (David Christensen <david.christensen@crunchydata.com>)
Responses Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified
List 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)

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: reporting TID/table with corruption error
Next
From: David Christensen
Date:
Subject: Re: [PATCH] Error out if SKIP LOCKED and WITH TIES are both specified