Web Security · Business Logic
SELECT FOR UPDATE
Also known as: Row-locking SELECT
A locking query that takes row locks on rows it returns within the transaction. A zero-row result provides no lock on a missing row and does not create a general gap lock in PostgreSQL.