From 77a4c51af80819c3bcd581d9237f5c47e68393a6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 15 Jun 2010 20:04:53 +0000 Subject: [PATCH] Clarify SELECT FOR UPDATE behavior in docs. --- doc/src/sgml/ref/select.sgml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index 372116be3f..15d9b75b59 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -1,5 +1,5 @@ @@ -1200,8 +1200,9 @@ FOR SHARE [ OF table_name [, ...] ] case of a join query, the rows locked are those that contribute to returned join rows. In addition, rows that satisfied the query conditions as of the query snapshot will be locked, although they - will not be returned if they have since been updated to not satisfy - the query conditions. If a LIMIT is used, locking stops + will not be returned if they were updated after the snapshot + and no longer satisfy the query conditions. If a + LIMIT is used, locking stops once enough rows have been returned to satisfy the limit (but note that rows skipped over by OFFSET will get locked). Similarly, if FOR UPDATE or FOR SHARE -- 2.40.0