1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-18 12:22:09 +03:00

Backpatch of LIMIT / FOR UPDATE behavior, but keep pre-7.3 mention in 8.0.X.

This commit is contained in:
Bruce Momjian
2005-04-22 15:53:27 +00:00
parent ddae2b6801
commit 8e4b89ccf2

View File

@@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.80.4.1 2005/01/22 23:23:53 momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.80.4.2 2005/04/22 15:53:27 momjian Exp $
PostgreSQL documentation
-->
@@ -818,6 +818,16 @@ FOR UPDATE [ OF <replaceable class="parameter">table_name</replaceable> [, ...]
rows; for example it can't be used with aggregation.
</para>
<para>
It is possible for a <command>SELECT</> command using both
<literal>LIMIT</literal> and <literal>FOR UPDATE</literal>
clauses to return fewer rows than specified by <literal>LIMIT</literal>.
This is because <literal>LIMIT</> selects a number of rows,
but might then block requesting a <literal>FOR UPDATE</literal> lock.
Once the <literal>SELECT</> unblocks, the query qualification might not
be met and the row not be returned by <literal>SELECT</>.
</para>
<para>
<literal>FOR UPDATE</literal> may appear before
<literal>LIMIT</literal> for compatibility with