|
|
|
|
|
by oxidant
396 days ago
|
|
FOR UPDATE SKIP LOCKED is great, but it needs to be in a transaction. In the example code it won't "do" anything because it selects for update then immediately loses the lock. Claude says you can use a CTE to select and the run your update with the locked rows, but I have only ever used transactions. |
|