Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 77a4c51

Browse files
committed
Clarify SELECT FOR UPDATE behavior in docs.
1 parent b17129b commit 77a4c51

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/ref/select.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.130 2010/04/03 07:23:02 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.131 2010/06/15 20:04:53 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -1200,8 +1200,9 @@ FOR SHARE [ OF <replaceable class="parameter">table_name</replaceable> [, ...] ]
12001200
case of a join query, the rows locked are those that contribute to
12011201
returned join rows. In addition, rows that satisfied the query
12021202
conditions as of the query snapshot will be locked, although they
1203-
will not be returned if they have since been updated to not satisfy
1204-
the query conditions. If a <literal>LIMIT</> is used, locking stops
1203+
will not be returned if they were updated after the snapshot
1204+
and no longer satisfy the query conditions. If a
1205+
<literal>LIMIT</> is used, locking stops
12051206
once enough rows have been returned to satisfy the limit (but note that
12061207
rows skipped over by <literal>OFFSET</> will get locked). Similarly,
12071208
if <literal>FOR UPDATE</literal> or <literal>FOR SHARE</literal>

0 commit comments

Comments
 (0)